angular-upload
angular-upload copied to clipboard
IE9 - Browser tries to download JSON
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!
The content type must be text/html for IE (see documentation)
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