Skip to content

Commit b818175

Browse files
committed
fix: large file upload progress handling
1 parent c2080ef commit b818175

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
@@ -76,6 +76,7 @@
7676
withCredentials: false,
7777
preprocess: null,
7878
method: 'multipart',
79+
7980
prioritizeFirstAndLastChunk: false,
8081
target: '/',
8182
testChunks: true,
@@ -925,7 +926,7 @@
925926
});
926927
var percent = bytesLoaded / this.size;
927928
// We don't want to lose percentages when an upload is paused
928-
this._prevProgress = Math.max(this._prevProgress, percent > 0.999 ? 1 : percent);
929+
this._prevProgress = Math.max(this._prevProgress, percent > 0.9999 ? 1 : percent);
929930
return this._prevProgress;
930931
},
931932

0 commit comments

Comments
 (0)