Skip to content

Commit

Permalink
Merge pull request #173 from qgustavor/fix-upload-progress
Browse files Browse the repository at this point in the history
Fix upload progress. I wrote the fix, I merge the fix. Yeay.
  • Loading branch information
qgustavor authored Jan 5, 2024
2 parents 9e67bf7 + df9c062 commit 67a6ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mutable-file.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ class MutableFile extends File {
let remainingBuffer
let uploadBuffer, uploadURL
let chunkSize, chunkPos
let bytesUploaded = 0

const handleChunk = () => {
chunkSize = Math.min(currentChunkSize, size - position)
Expand Down Expand Up @@ -358,7 +359,6 @@ class MutableFile extends File {
const sendChunk = () => {
const chunkPosition = position
const chunkBuffer = uploadBuffer
let bytesUploaded = 0
let tries = 0

const trySendChunk = () => {
Expand Down

0 comments on commit 67a6ba5

Please sign in to comment.