Currently, I am utilizing angularjs for file uploads to my API. The page features a multi-file select option where users can choose one or multiple files. Upon selection, the page initiates calls to the api and uploads each file individually using requests (similar to the example provided below):
var promises = [];
angular.forEach(files, function(value) {
promises.push(this.$http.post(this.baseApiUrl + '/files', fd)
.then((response: ng.IHttpPromiseCallbackArg<any>): any => {
return response.data;
})
}
This method works flawlessly in all browsers except Internet Explorer. In IE, when there are more than approximately 20 files selected, most of them upload successfully while a couple of requests get aborted randomly without a specific pattern. Even though the request is received by the API, the browser prematurely gives up on the request as if it failed (not due to a timeout). The error message displayed by IE is: XMLHttpRequest: Network Error 0x2ee2, Could not complete the operation due to error 00002ee2.
As there doesn't seem to be a definitive list of XMLHttpRequest error codes available, I am unable to determine the exact meaning behind the code 00002ee2. Any assistance regarding this matter would be greatly appreciated.