IE10 does not handle jquery file upload request

I have a strange problem on my Win 8 / ie10 machine. I submit my files with the jQuery fileupload plugin to the MVC 4 controller method.

$('#fileupload').fileupload({ dataType: 'json', url: baseUrl + "/Profile/UploadImage", done: function (e, data) { var r = data.result; if (r.success) { if (jcrop_api) jcrop_api.destroy(); setCrop(); jcrop_api.setImage(r.fileUri); $('#previewImage').attr('src', ''); $("#cropForm").dialog("open"); } } }); 

This works fine in chrome, but when I tried it in IE10 today, it started a request but never returned. The MVC Controller method never hits. There are no errors in the F12 IE10 console. The Network tab in the IE console lists the request as pending. Are there any known issues at the moment?

+4
source share
1 answer

I had this problem. In my case, I used an "application / json" content type response that does not seem to be supported by IE.

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

0
source

Source: https://habr.com/ru/post/1499930/


All Articles