aguidrevitch / jquery-file-upload-middleware

jQuery-File-Upload Express.js middleware
294 stars 120 forks source link

IE9 always shows a download popup for files.json #58

Closed derjust closed 10 years ago

derjust commented 10 years ago

On IE9 with fallback to IFrame transport, the browser always popups a download save as window for "files.json".

Is there a specfic reason for sending the Content-Disposal header? I dropped it as per https://github.com/derjust/jquery-file-upload-middleware/commit/56c640a1c799d2bea9da96d6ca13413f8fcb42b1 and everything looks good now.

Also at the jQuery file upload docu I couldn't find a reference to this header. (Only the obvious one about content type https://github.com/blueimp/jQuery-File-Upload/issues/1795) I checked the content type and it set to plain/text as per jQuery documentation.

Maybe due to a missing, additional nosniff this could be solved in a cleaner way?

aguidrevitch commented 10 years ago

Can you please check if feb57b257010654be7fb77af4c78834cd9a9b4cf (latest master) works for you ?

derjust commented 10 years ago

Yep solves it. Thanks

aguidrevitch commented 10 years ago

0.1.7 published to npm