Skip to content

High performance self-hosted photo and video management solution.

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

Michel Heusschen1b8844cb4a97
diff --git a/web/src/lib/utils.ts b/web/src/lib/utils.ts
index e4ac01f87d..4b1892ae86 100644
--- a/web/src/lib/utils.ts
+++ b/web/src/lib/utils.ts
@@ -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);