Skip to content

Commit feff1e1

Browse files
committed
Release v2.11.2
1 parent 78886ae commit feff1e1

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

dist/flow.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
generateUniqueIdentifier: null,
9292
maxChunkRetries: 0,
9393
chunkRetryInterval: null,
94-
permanentErrors: [404, 415, 500, 501],
94+
permanentErrors: [404, 413, 415, 500, 501],
9595
successStatuses: [200, 201, 202],
9696
onDropStopPropagation: false,
9797
initFileFn: null,
@@ -155,8 +155,8 @@
155155
/**
156156
* Set a callback for an event, possible events:
157157
* fileSuccess(file), fileProgress(file), fileAdded(file, event),
158-
* fileRetry(file), fileError(file, message), complete(),
159-
* progress(), error(message, file), pause()
158+
* fileRemoved(file), fileRetry(file), fileError(file, message),
159+
* complete(), progress(), error(message, file), pause()
160160
* @function
161161
* @param {string} event
162162
* @param {Function} callback
@@ -368,7 +368,7 @@
368368
* be selected (Chrome only).
369369
*/
370370
assignBrowse: function (domNodes, isDirectory, singleFile, attributes) {
371-
if (typeof domNodes.length === 'undefined') {
371+
if (domNodes instanceof Element) {
372372
domNodes = [domNodes];
373373
}
374374

@@ -594,8 +594,8 @@
594594
}
595595
this.files.push(file);
596596
}, this);
597+
this.fire('filesSubmitted', files, event);
597598
}
598-
this.fire('filesSubmitted', files, event);
599599
},
600600

601601

@@ -609,6 +609,7 @@
609609
if (this.files[i] === file) {
610610
this.files.splice(i, 1);
611611
file.abort();
612+
this.fire('fileRemoved', file);
612613
}
613614
}
614615
},
@@ -1046,7 +1047,7 @@
10461047
/**
10471048
* Default read function using the webAPI
10481049
*
1049-
* @function webAPIFileRead(fileObj, fileType, startByte, endByte, chunk)
1050+
* @function webAPIFileRead(fileObj, startByte, endByte, fileType, chunk)
10501051
*
10511052
*/
10521053
function webAPIFileRead(fileObj, startByte, endByte, fileType, chunk) {
@@ -1336,7 +1337,7 @@
13361337
switch (this.readState) {
13371338
case 0:
13381339
this.readState = 1;
1339-
read(this.fileObj, this.startByte, this.endByte, this.fileType, this);
1340+
read(this.fileObj, this.startByte, this.endByte, this.fileObj.file.type, this);
13401341
return;
13411342
case 1:
13421343
return;
@@ -1399,7 +1400,7 @@
13991400
return 'success';
14001401
} else if (this.flowObj.opts.permanentErrors.indexOf(this.xhr.status) > -1 ||
14011402
!isTest && this.retries >= this.flowObj.opts.maxChunkRetries) {
1402-
// HTTP 415/500/501, permanent error
1403+
// HTTP 413/415/500/501, permanent error
14031404
return 'error';
14041405
} else {
14051406
// this should never happen, but we'll reset and queue a retry
@@ -1599,7 +1600,7 @@
15991600
* Library version
16001601
* @type {string}
16011602
*/
1602-
Flow.version = '2.10.1';
1603+
Flow.version = '2.11.2';
16031604

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy