Ask Your Question

IE, firefox can not upload image

asked 2012-02-09 07:55:29 -0500

jerry_gzy's avatar

updated 2012-02-19 13:32:38 -0500

Evgeny's avatar

anyone know what's the problem?

edit retag flag offensive close merge delete


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

3 Answers

Sort by ยป oldest newest most voted

answered 2012-02-19 13:10:38 -0500

Evgeny's avatar

updated 2012-02-19 13:33:12 -0500

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.

edit flag offensive delete link more

answered 2012-02-11 16:40:53 -0500

jerry_gzy's avatar

updated 2012-02-12 17:06:21 -0500

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

edit flag offensive delete link more


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

answered 2012-02-10 03:46:51 -0500

piskvorky's avatar

Testing image upload in firefox:

image description

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-02-09 07:55:29 -0500

Seen: 637 times

Last updated: Feb 19 '12