angular-upload icon indicating copy to clipboard operation
angular-upload copied to clipboard

IE9 - Browser tries to download JSON

Open XtiR opened this issue 9 years ago • 2 comments

Hi there!

I recently started implementing your solution because uploading files on IE9 is a nightmare. With your solution, it seems to upload the selected file, but when I get a response back from the server (returns a json), IE9 tries to download the file and it doesn't trigger any of the callbacks there are. Only "onUpload" callback is being called but with no arguments.

Is there anything I can do so that my this returns a json instead of trying to download the file?

Thank you in advance!

XtiR avatar Apr 15 '16 09:04 XtiR

The content type must be text/html for IE (see documentation)

micw avatar May 13 '16 09:05 micw

I tried setting text/html. Its not showing download JSON now.

But the code got broken in

function transformData(data, fns)

.forEach undefined. Also file upload not worked second time

MuraliM avatar May 18 '17 15:05 MuraliM