Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1135
Strange behaviour with igFileUpload in IE 9
posted

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?

Parents
  • 1800
    posted

    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.

    Thanks,

    Miroslav Hristov

Reply Children
No Data