Good day,
I am having a strange situation with the upload control when using IE 9.
I upload the file data directly to a WCF service, by changing the "uploadUrl" property to my WCF REST service, that accepts a stream.
However, this method also returns a list object, but in IE 9, the data returned is trying to download a file instead of firing the "uploaded" event.
What could be causing this?
Hi,
IE9 does not implement HTML5 file API so when select file in the igUpload the file is "included" in a form and when click upload this form is submitted. So in IE9 if your service returns some data in JSON then the browser IE7-10 probably starts downloading it. So my advice is just to change a little bit your service. I have made a little research - you can check this post in StackOverflow - http://stackoverflow.com/questions/13943439/json-response-download-in-ie710. In short you should return the json as text/html since IE does not know what to do with application/json contents. I hope this will help you.
text/html
application/json
Thanks,
Miroslav Hristov
Hi Miroslav,
Thank you for the explanation and the link. I'll implement this and test it, and leave a reply regarding my results.
Regards,
Eduard K.