Search code examples
internet-explorerangularjsinternet-explorer-9blueimpajax-upload

Blueimp file uploader with IE9


I am uploading a file to a REST API using this plugin in an AngularJS application. When seconds after the 'fileuploaddone' event fires, I get a yellow notification from Internet Explorer saying: Would you like to save \ open the

Screenshot attached.

enter image description here


Solution

  • Iframe based uploads require a Content-type of text/plain or text/html for the JSON response - they will show an undesired download dialog if the iframe response is set to application/json.

    Source: https://github.com/blueimp/jQuery-File-Upload/wiki/Setup#content-type-negotiation

    You will need to set the right Content-Type as explained in the link above.