问题
I have a problem uploading files bigger than 500Mb.
I created a plunker file with error code: https://plnkr.co/edit/vKHNkUuVX1RrMcZ6Ezhc?p=preview
var request = new XMLHttpRequest();
request.open("POST", "/uploadFile");
request.send(formData);
request.addEventListener("progress", function(evt) {
if (evt.lengthComputable) {
console.log(evt.loaded / evt.total);
} else {
console.log('Undefined percent...');
}
}, false);
request.addEventListener("load", function(evt) {
console.error(evt);
}, false);
request.addEventListener("error", function(evt) {
console.error(evt);
}, false);
To reproduce the error:
- Open Chrome with link of plunker file.
- Open inspector console (F12).
- Upload file with size between 300Mb and 500Mb.
- Server response with error, but the code try to upload the file selected.
- Upload file bigger than 200Mb.
- Get an net::ERR_FILE_NOT_FOUND from client code, the call not arrive to server.
Best regards and thanks.
来源:https://stackoverflow.com/questions/38139882/failed-to-load-resource-neterr-file-not-found-uploading-files-bigger-than-500