First time here? Check out the FAQ!
1

IE, firefox can not upload image

anyone know what's the problem?

jerry_gzy's avatar
53
jerry_gzy
asked 2012-02-09 07:55:29 -0500
Evgeny's avatar
13.2k
Evgeny
updated 2012-02-19 13:32:38 -0500
edit flag offensive 0 remove flag close merge delete

Comments

image upload in both avatar and post seem to work for me in Firefox; what exactly is the problem?

piskvorky's avatar piskvorky (2012-02-10 03:47:47 -0500) edit

do you have this issue with the django's runserver or with the production site? What symptom do you have - no url assigned to the image or you just don't see the uploaded image?

Evgeny's avatar Evgeny (2012-02-11 11:14:04 -0500) edit

hi, @Evgeny , thanks for help, when I try to upload an image locally, I got this TypeError: data is undefined message.

jerry_gzy's avatar jerry_gzy (2012-02-11 16:21:40 -0500) edit

Are you getting the error on this site?

Evgeny's avatar Evgeny (2012-02-11 18:06:28 -0500) edit

well, for this site I don't have enough karma, so I am not sure, but the image I posted via URL is the error from my local site.

jerry_gzy's avatar jerry_gzy (2012-02-11 20:13:32 -0500) edit
add a comment see more comments

3 Answers

1

this what I get when try to upload image from firefox.

image description

this site also got the problem (when try to upload by firefox)

image description

jerry_gzy's avatar
53
jerry_gzy
answered 2012-02-11 16:40:53 -0500, updated 2012-02-12 17:06:21 -0500
edit flag offensive 0 remove flag delete link

Comments

Please confirm this issue on this site, I've just updated it to the latest development version, I'll look into the problem then.

Evgeny's avatar Evgeny (2012-02-11 20:21:42 -0500) edit

this site also got the problem (when try to upload by firefox)

jerry_gzy's avatar jerry_gzy (2012-02-12 17:07:00 -0500) edit

@Evgeny: what was the problem? file permissions?

piskvorky's avatar piskvorky (2012-02-18 10:42:48 -0500) edit

I could confirm this error, in Chrome upload works, but in FF does not. I think it has something to do with json decoding, but not 100% sure. The browser does not give any warnings, just the data that is supposed to come out of json decoding is "undefined", giving that text for the alert. This is most likely browser-version/os specific. Possibly the jqueryAjaxFile upload extension that we use does not support json properly, looking into it now.

Evgeny's avatar Evgeny (2012-02-19 11:55:19 -0500) edit
add a comment see more comments
1

Testing image upload in firefox:

image description

piskvorky's avatar
350
piskvorky
answered 2012-02-10 03:46:51 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
1

This issue is now fixed in the repository. I've reverted to XML type response in the server file upload handler, apparently the ajaxFileUpload extension that we use does not cooperate with json.

Updated this site too, please try.

Evgeny's avatar
13.2k
Evgeny
answered 2012-02-19 13:10:38 -0500, updated 2012-02-19 13:33:12 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments