Skip to content

Commit

Permalink
fix(web): asset upload progress (immich-app#7882)
Browse files Browse the repository at this point in the history
  • Loading branch information
michelheusschen authored Mar 12, 2024
1 parent a097e90 commit 1b8844c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const uploadRequest = async <T>(options: UploadRequestOptions): Promise<{
});

if (onProgress) {
xhr.addEventListener('progress', (event) => onProgress(event));
xhr.upload.addEventListener('progress', (event) => onProgress(event));
}

xhr.open('POST', url);
Expand Down

0 comments on commit 1b8844c

Please sign in to comment.