[英]IE10 does not process jquery file upload request

I have a strange problem on my Win 8 / ie10 machine. I'm posting my files with the jquery fileupload plugin to an MVC 4 controller method.

我的Win 8 / ie10機器上有一個奇怪的問題。我將帶有jquery fileupload插件的文件發布到MVC 4控制器方法。

        dataType: 'json',
        url: baseUrl + "/Profile/UploadImage",
        done: function (e, data) {
            var r = data.result;
            if (r.success) {
                if (jcrop_api)

                $('#previewImage').attr('src', '');

This works great in chrome but when I tried it in IE10 today it started the request but never returned. The MVC Controller method is never hit. There are no errors in the F12 console of IE10. The network tab in the IE console lists the request as pending. Are there any known problems at the moment?

這在chrome中效果很好但是當我今天在IE10中嘗試它時它啟動了請求但從未返回。 MVC控制器方法永遠不會被擊中。 IE10的F12控制台沒有錯誤。 IE控制台中的網絡選項卡將請求列為待處理。目前是否有任何已知問題?

1 个解决方案



I had this problem to. In my case, I was using the response content-type "application/json" which doesn't seem to be supported by IE.

我有這個問題。在我的情況下,我使用的響應內容類型“application / json”似乎不受IE支持。

Changing it to "text/plain" did the trick for me.

將它改為“text / plain”對我來說是個竅門。



  © 2014-2022 联系我们: