I am struggling to download the Blueimp jQuery downloader that runs on MVC 3 with IIS 7.5 on Windows Server 2008 R2. I use HttpHandler to handle the loading that is called. But the HttpHandler never receives the file, and the HttpMethod βPOSTβ or βPUTβ is always βOPTIONSβ. Does anyone know what's wrong here?
The only message I receive when I refuse a callback from the bootloader is an βerrorβ.
Here is my JS:
$('#fileupload').fileupload( { acceptFileTypes: /(\.|\/)(pdf)$/i, fail: function (e, data) { alert("Error: " + data.errorThrown + " Text-Status: " + data.textStatus); // data.jqXHR; }, maxNumberOfFiles: 1 /*add: function (e, data) { data.formData = [{ name: "name1", value: "1" }, { name: "name2", value: "2"}]; data.submit(); }, submit: function (e, data) { //data.formData = [{ name: "name1", value: "1" }, { name: "name2", value: "2"}]; }*/ } );
Thanks so much for any help!
source share