mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(web): asset upload progress (#7882)
This commit is contained in:
parent
a097e903c9
commit
1b8844cb4a
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@ export const uploadRequest = async <T>(options: UploadRequestOptions): Promise<{
|
||||||
});
|
});
|
||||||
|
|
||||||
if (onProgress) {
|
if (onProgress) {
|
||||||
xhr.addEventListener('progress', (event) => onProgress(event));
|
xhr.upload.addEventListener('progress', (event) => onProgress(event));
|
||||||
}
|
}
|
||||||
|
|
||||||
xhr.open('POST', url);
|
xhr.open('POST', url);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue