Skip to content

Commit 922c4b3

Browse files
committed
Release v2.14.1
1 parent 2cbe1e9 commit 922c4b3

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

dist/flow.js

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@
272272
decrement();
273273
}
274274
function readError(fileError) {
275+
decrement();
275276
throw fileError;
276277
}
277278
function decrement() {
@@ -750,7 +751,7 @@
750751
* @type {string}
751752
*/
752753
this.uniqueIdentifier = (uniqueIdentifier === undefined ? flowObj.generateUniqueIdentifier(file) : uniqueIdentifier);
753-
754+
754755
/**
755756
* Size of Each Chunk
756757
* @type {number}
@@ -1168,6 +1169,12 @@
11681169
*/
11691170
this.startByte = this.offset * this.chunkSize;
11701171

1172+
/**
1173+
* A specific filename for this chunk which otherwise default to the main name
1174+
* @type {string}
1175+
*/
1176+
this.filename = null;
1177+
11711178
/**
11721179
* Compute the endbyte in a file
11731180
*
@@ -1249,7 +1256,7 @@
12491256
delete this.data;
12501257
$.event(status, $.message());
12511258
$.flowObj.uploadNextChunk();
1252-
} else {
1259+
} else if (!$.fileObj.paused) {
12531260
$.event('retry', $.message());
12541261
$.pendingRetry = true;
12551262
$.abort();
@@ -1511,7 +1518,9 @@
15111518
each(query, function (v, k) {
15121519
data.append(k, v);
15131520
});
1514-
if (typeof blob !== "undefined") data.append(this.flowObj.opts.fileParameterName, blob, this.fileObj.file.name);
1521+
if (typeof blob !== "undefined") {
1522+
data.append(this.flowObj.opts.fileParameterName, blob, this.filename || this.fileObj.file.name);
1523+
}
15151524
}
15161525

15171526
this.xhr.open(method, target, true);
@@ -1629,7 +1638,7 @@
16291638
* Library version
16301639
* @type {string}
16311640
*/
1632-
Flow.version = '2.14.0';
1641+
Flow.version = '2.14.1';
16331642

16341643
if ( typeof module === "object" && module && typeof module.exports === "object" ) {
16351644
// Expose Flow as module.exports in loaders that implement the Node

0 commit comments

Comments
 (0)