最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - IE11 hangs during file upload with AjaxFileUpload - Stack Overflow

programmeradmin0浏览0评论

Strange problem appeared with IE11 few days ago. The plugin, wich worked good () now doesn't want to. After I choose a file and click "Load" IE deathly hangs. Only kill process helps. I looked into deep jQuery code for posting data and can't find where to put breakpoint before it hangs. The submitting data is ok, file recieved on server and handler correctly worked, it returns the XML with some info. But no more events (such as "ajaxComplete") called on client after the handler's "context.Response.End();". Where can I find the problem? It is only in IE11 and on many different machines. IE10 works OK... Appreciate for any help!

Strange problem appeared with IE11 few days ago. The plugin, wich worked good (https://github./davgothic/AjaxFileUpload) now doesn't want to. After I choose a file and click "Load" IE deathly hangs. Only kill process helps. I looked into deep jQuery code for posting data and can't find where to put breakpoint before it hangs. The submitting data is ok, file recieved on server and handler correctly worked, it returns the XML with some info. But no more events (such as "ajaxComplete") called on client after the handler's "context.Response.End();". Where can I find the problem? It is only in IE11 and on many different machines. IE10 works OK... Appreciate for any help!

Share Improve this question asked Jul 14, 2014 at 11:46 G. GoncharovG. Goncharov 3023 silver badges15 bronze badges
Add a ment  | 

4 Answers 4

Reset to default 4

I just ran into the same problem, and it seems to be linked to the following security update from Microsoft

http://support.microsoft./kb/2962872/en-us

Under known issues, they've listed

"Issue 3: After you install this security update, Internet Explorer may bee unresponsive in some applications when web forms are being used or when files are being uploaded. This issue affects Internet Explorer versions 10 and 11.

Note We are researching this problem and will post more information in this article when the information bees available."

After uninstalling this update, our file uploading once again works fine.

I recently experienced this issue as well. I am using a jQuery Ajax call to an MVC controller posting a .csv file. It's definitely an IE 11 issue that isn't resolved. My workaround was to specify "async:false" in the Ajax call to the controller and it solved my issue. I hope this helps someone! Here is the code I'm using below:

  $.ajax({
        type: 'POST',
        url: ***,
        data: ***,
        processData: false,
        contentType: false,
        cache: false,
        async: false,
        success: function (response) {
           do something:
        },
        error: function () {           
        }
    });

I fixed that problem later with removing the MS windows update KB2962872. That sucks, that Microsoft did that bug and took so much time to fix it. I'm still not sure have it been fixed by newer update?

In ran into the same issue with a context a bit different. I share my experience, maybe you could save days of debugging (one week for me) with it.

In my context, I used AngularJS with a .NET server. I tried to use the ng-file-upload extension (https://github./danialfarid/ng-file-upload), but also tried with a more simple FormData javascript object. Same issue occurred: - In Chrome, everything works fine - In IE 11.20.10586 on my Windows 10 puter, also no problem - But with IE 11.0.9600.18059 (Windows 7) and IE 11.0.9600.17728 (Windows Server), impossible to send a file, IE hangs.

After some time and a few new gray hairs, I finally found a hack. Nothing beautiful, but the only way I found to upload a file: I noticed that if I send the request twice one behind the other, but removing the file in the first one, then the second request posted correctly the file!

I still do not have a valuable explanation why that hack is working and not the classic upload, but after debugging and digging a lot about it on the web, I am quite convinced it is an IE bug.

I hope this can help!

发布评论

评论列表(0)

  1. 暂无评论