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 272
272
decrement ( ) ;
273
273
}
274
274
function readError ( fileError ) {
275
+ decrement ( ) ;
275
276
throw fileError ;
276
277
}
277
278
function decrement ( ) {
750
751
* @type {string }
751
752
*/
752
753
this . uniqueIdentifier = ( uniqueIdentifier === undefined ? flowObj . generateUniqueIdentifier ( file ) : uniqueIdentifier ) ;
753
-
754
+
754
755
/**
755
756
* Size of Each Chunk
756
757
* @type {number }
1168
1169
*/
1169
1170
this . startByte = this . offset * this . chunkSize ;
1170
1171
1172
+ /**
1173
+ * A specific filename for this chunk which otherwise default to the main name
1174
+ * @type {string }
1175
+ */
1176
+ this . filename = null ;
1177
+
1171
1178
/**
1172
1179
* Compute the endbyte in a file
1173
1180
*
1249
1256
delete this . data ;
1250
1257
$ . event ( status , $ . message ( ) ) ;
1251
1258
$ . flowObj . uploadNextChunk ( ) ;
1252
- } else {
1259
+ } else if ( ! $ . fileObj . paused ) {
1253
1260
$ . event ( 'retry' , $ . message ( ) ) ;
1254
1261
$ . pendingRetry = true ;
1255
1262
$ . abort ( ) ;
1511
1518
each ( query , function ( v , k ) {
1512
1519
data . append ( k , v ) ;
1513
1520
} ) ;
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
+ }
1515
1524
}
1516
1525
1517
1526
this . xhr . open ( method , target , true ) ;
1629
1638
* Library version
1630
1639
* @type {string }
1631
1640
*/
1632
- Flow . version = '2.14.0 ' ;
1641
+ Flow . version = '2.14.1 ' ;
1633
1642
1634
1643
if ( typeof module === "object" && module && typeof module . exports === "object" ) {
1635
1644
// Expose Flow as module.exports in loaders that implement the Node
You can’t perform that action at this time.
0 commit comments