File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed
Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change 272272 decrement ( ) ;
273273 }
274274 function readError ( fileError ) {
275+ decrement ( ) ;
275276 throw fileError ;
276277 }
277278 function decrement ( ) {
750751 * @type {string }
751752 */
752753 this . uniqueIdentifier = ( uniqueIdentifier === undefined ? flowObj . generateUniqueIdentifier ( file ) : uniqueIdentifier ) ;
753-
754+
754755 /**
755756 * Size of Each Chunk
756757 * @type {number }
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 *
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 ( ) ;
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 ) ;
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
You can’t perform that action at this time.
0 commit comments