Skip to content

Commit

Permalink
@uppy/status-bar: fix double upload progress (#5587)
Browse files Browse the repository at this point in the history
fix double upload progress

fixes #5585
  • Loading branch information
mifi authored Jan 9, 2025
1 parent 0215c5a commit 817ce72
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/@uppy/status-bar/src/StatusBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,13 @@ export default class StatusBar<M extends Meta, B extends Body> extends UIPlugin<
totalSize! += file.progress.bytesTotal || 0
totalUploadedSize += file.progress.bytesUploaded || 0
})
} else {
// however uploaded size we will always have
startedFiles.forEach((file) => {
totalUploadedSize += file.progress.bytesUploaded || 0
})
}

// however uploaded size we will always have
startedFiles.forEach((file) => {
totalUploadedSize += file.progress.bytesUploaded || 0
})

const totalETA = this.#computeSmoothETA({
uploaded: totalUploadedSize,
total: totalSize,
Expand Down

0 comments on commit 817ce72

Please sign in to comment.