Skip to content

Commit 55d0ab9

Browse files
Http status code 202 is now considered a success.
1 parent 7ac9f22 commit 55d0ab9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/flow.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,8 +1302,9 @@
13021302
// or 'LOADING' - meaning that stuff is happening
13031303
return 'uploading';
13041304
} else {
1305-
if (this.xhr.status == 200) {
1305+
if (this.xhr.status == 200 || this.xhr.status == 202) {
13061306
// HTTP 200, perfect
1307+
// HTTP 202 Accepted - The request has been accepted for processing, but the processing has not been completed.
13071308
return 'success';
13081309
} else if (this.flowObj.opts.permanentErrors.indexOf(this.xhr.status) > -1 ||
13091310
this.retries >= this.flowObj.opts.maxChunkRetries) {

0 commit comments

Comments
 (0)