У нас есть фрагмент кода, который загружает несколько файлов на сервер. Интересно, что этот код отлично работает на Chrome и Mozilla, но он не работает в Internet Explorer, получая следующую ошибку
XMLHttpRequest:Сетевая ошибка 0x2ee2, не удалось завершить операцию из-за ошибки 00002ee2
Мы пробовали решения, упомянутые в SCRIPT7002: XMLHttpRequest: Сетевая ошибка 0x2ef3, не удалось завершить операцию из-за ошибки 00002ef3 но все еще получаю похожую проблему
Мы изменили значение тайм-аута для Internet Explorer, используя следующее это руководство , но оно бесполезно.
Мы находим строку кода, которая вызываетпроблема
///////////////////////////////////////////////////////////////////////
// Private Helper for making servlet calls
_servercall: function(urlStr, input, isAsync, dataT, ajaxcallback) {
// Using the core $.ajax method
$.ajax({
// the URL for the request
url : urlStr,
async : isAsync,
// the data to send (will be converted to a query string)
data : input,
// whether this is a POST or GET request
type : "GET",
// the type of data we expect back
dataType : dataT,
// code to run if the request succeeds;
// the response is passed to the function
success : function(json) {
console.log("Server call - Success");
ajaxcallback(json);
},
// code to run if the request fails; the raw request and
// status codes are passed to the function
// This needs to be better handled, more graceful error, ToDo
error : function(xhr, status) {
console.log("Server call - error. Status " + status);
JCAAlert("com.ptc.windchill.enterprise.attachments.attachmentsResource.DO_APPLET_UPLOAD_ERROR");
this.cleanupUploadFields(this.wizardStep, null);
},
// code to run regardless of success or failure
complete : function(xhr, status) {
console.log("The request is complete! Status " + status);
}
});
},
Этот код работает нормально до файла № 12 в IE, но как только мы выбираем более 12 файлов, он завершается с ошибкой выше?
Это ограничение ajaxили что-то?
![See error snapshot](https://i.stack.imgur.com/9V6of.png)