First time here? Check out the FAQ!
1

IE, firefox can not upload image
 

anyone know what's the problem?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
jerry_gzy's avatar
53
jerry_gzy
asked 13 years ago
Evgeny's avatar
13.2k
Evgeny
updated 13 years ago

Comments

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

piskvorky's avatar piskvorky (13 years ago)

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 (13 years ago)

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 (13 years ago)

Are you getting the error on this site?

Evgeny's avatar Evgeny (13 years ago)

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 (13 years ago)
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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
jerry_gzy's avatar
53
jerry_gzy
answered 13 years ago, updated 13 years ago
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 (13 years ago)

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

jerry_gzy's avatar jerry_gzy (13 years ago)

@Evgeny: what was the problem? file permissions?

piskvorky's avatar piskvorky (13 years ago)

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 (13 years ago)
see more comments
1

Testing image upload in firefox:

image description

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
piskvorky's avatar
350
piskvorky
answered 13 years ago
link

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 13 years ago, updated 13 years ago
link

Comments

see more comments