1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00

fix(web): asset upload progress (#7882)

This commit is contained in:
Michel Heusschen 2024-03-12 12:19:38 +01:00 committed by GitHub
parent a097e903c9
commit 1b8844cb4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);