Ask Your Question
1

IE, firefox can not upload image

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

jerry_gzy gravatar image

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

Evgeny gravatar image

anyone know what's the problem?

edit retag flag offensive close merge delete

Comments

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

piskvorky gravatar imagepiskvorky ( 2012-02-10 03:47:47 -0600 )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 gravatar imageEvgeny ( 2012-02-11 11:14:04 -0600 )edit

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

jerry_gzy gravatar imagejerry_gzy ( 2012-02-11 16:21:40 -0600 )edit

Are you getting the error on this site?

Evgeny gravatar imageEvgeny ( 2012-02-11 18:06:28 -0600 )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 gravatar imagejerry_gzy ( 2012-02-11 20:13:32 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
1

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

jerry_gzy gravatar image

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

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

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 gravatar imageEvgeny ( 2012-02-11 20:21:42 -0600 )edit

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

jerry_gzy gravatar imagejerry_gzy ( 2012-02-12 17:07:00 -0600 )edit

@Evgeny: what was the problem? file permissions?

piskvorky gravatar imagepiskvorky ( 2012-02-18 10:42:48 -0600 )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 gravatar imageEvgeny ( 2012-02-19 11:55:19 -0600 )edit
1

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

piskvorky gravatar image

Testing image upload in firefox:

image description

edit flag offensive delete link more
1

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

Evgeny gravatar image

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

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

Your Answer

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

Add Answer

Question Tools

Stats

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

Seen: 425 times

Last updated: Feb 19 '12