I am using qq uploader for file uploads with Django. It works fine in modern browsers like FF/Chrome. I have also made some progress in making it work more or less properly in IE8. My issue is that when I upload a file and receive a JSON response from server, looks like this:
{"success":true,"url":"/media/campaigns/20111118162942_home_cooking_win_01.png"}
My code is like this:
onComplete:function(id, fileName, responseJSON) {
alert(responseJSON['url']);
}
And I successfully load url attribute in FF/Chrome, but have no luck in IE8. It gets undefined value there. I tried different ways but couldn’t get actual value.
What can I do about it?
I tried playing with mimetype on server side.
application/jsonmade IE download the response as a file, and ‘text/plain’ made it surround response with<pre></pre>. Then I triedtext/htmland now response is evaluated properly so I can get values.