We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 876689e + 14f2d46 commit 75a0381Copy full SHA for 75a0381
lib/FileAPI.XHR.js
@@ -128,6 +128,10 @@
128
}
129
else {
130
// html5
131
+ if (this.xhr && this.xhr.aborted) {
132
+ api.log("Error: already aborted");
133
+ return;
134
+ }
135
xhr = _this.xhr = api.getXHR();
136
137
if (data.params) {
@@ -223,7 +227,7 @@
223
227
};
224
228
225
229
data.start = data.end + 1;
226
- data.end = Math.min(data.start + options.chunkSize, data.size ) - 1;
230
+ data.end = Math.max(Math.min(data.start + options.chunkSize, data.size ) - 1, data.start);
231
232
var slice;
233
(slice = 'slice') in data.file || (slice = 'mozSlice') in data.file || (slice = 'webkitSlice') in data.file;
0 commit comments