diff --git a/lib/managed-upload.js b/lib/managed-upload.js index 134fab7aa..c134f8080 100644 --- a/lib/managed-upload.js +++ b/lib/managed-upload.js @@ -245,6 +245,13 @@ WebFileReadStream.prototype._read = function _read(size) { that.file = null; that.readFileAndPush(size); }; + this.reader.onerror = function onload(e) { + const error = e.srcElement && e.srcElement.error; + if (error) { + throw error; + } + throw e; + }; if (this.start === 0) { this.reader.readAsArrayBuffer(this.file);