Skip to content

Commit

Permalink
web: fix incorrect attachment upload progress
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Jul 22, 2024
1 parent c8aa8e3 commit 0ad382a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/interfaces/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ async function multiPartUploadFile(
const onUploadProgress = (ev: AxiosProgressEvent) => {
reportProgress(
{
total: fileHandle.file.size + ABYTES,
total: fileHandle.file.size + ABYTES * TOTAL_PARTS,
loaded: uploadedBytes + ev.loaded
},
{
Expand Down Expand Up @@ -414,7 +414,7 @@ async function multiPartUploadFile(
await fileHandle.addAdditionalData("uploadedChunks", uploadedChunks);
await fileHandle.addAdditionalData("uploadedBytes", uploadedBytes);

onUploadProgress({ bytes: 0, loaded: blob.size });
onUploadProgress({ bytes: 0, loaded: 0 });
}

await axios
Expand Down

0 comments on commit 0ad382a

Please sign in to comment.