Greetings,
I’m using https://github.com/blueimp/jQuery-File-Upload (downloaded the version as of 5/21/2011) along with ASP.NET MVC3.
And here are the versions of jquery I am using:
-jquery-ui-1.8.11.min.js
-jquery-1.6.1.js
I was able to upload and save the file to designated folder, and then I return the Json object. Then the IE 7 browser pops a “File Download” dialog and asks me to download a file named “upload75bea5a4” with no extension.
I also testing in FF 3.6, and it too pops up a “file download” dialog and asks me to download a file named “UploadFiles” (which is the controller action name).
Any idea what’s going on here? Do I need to set the content-type in the header explicitly?
Thanks much in advance.
This is basically the same question posed by Ray in this thread:
jQuery File Upload plugin asks me to download the file, what is wrong?
No working solution was posed however.
It seems that you need to change the content type to
text/plainas per this discussion.And here’s what they suggest: