Skip to content

Commit 49b4af3

Browse files
committed
resumable upload support
1 parent 6bedd58 commit 49b4af3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sdk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2981,8 +2981,8 @@ class Appwrite {
29812981
if (onProgress) {
29822982
onProgress({
29832983
$id: response.$id,
2984-
progress: Math.min((counter + 1) * Appwrite.CHUNK_SIZE, size) / size * 100,
2985-
sizeUploaded: end+1,
2984+
progress: Math.min((counter + 1) * Appwrite.CHUNK_SIZE - 1, size) / size * 100,
2985+
sizeUploaded: end,
29862986
chunksTotal: response.chunksTotal,
29872987
chunksUploaded: response.chunksUploaded
29882988
});

0 commit comments

Comments
 (0)