I created a new drag and drop download control with a progress bar. It works great with all browsers, except for problems with IE 10 and above.
When I upload files to IE, most jquery async queries will not complete. He shows up waiting. I see that it is pending in the debug window of the IE network. But in all other browsers, it works well. I do not know what is wrong here. At first, I thought it could be related to caching. But after adding the server response options below. He is still waiting
context.Response.AppendHeader("Cache-Control", "no-cache"); // HTTP 1.1 context.Response.AppendHeader("Pragma", "no-cache"); // HTTP 1.1



for (var i = 0; i < files.length; i++) { var data = new FormData(); data.append(files[i].name, files[i]); uploadFile(handlerurl, data); } function uploadFile(handlerurl, formData) { var jqXHR = $.ajax({ type: 'POST', url: handlerurl, contentType: false, processData: false, async: true, cache: false, data: formData, xhr: function () { }, success: function (result, status, xhr) { }, error: function (xhr, status, error) { } }); }
I call this function for each file. I am not sure what is wrong with IE.
Edit: After debugging, it turned out that the server breakpoint would hit. but there are no files in context.Request.Files . No files are sent from jquery / AJAX. You can reproduce this problem by continuing to download the same file again and again.