From 1b8844cb4a97db68d468215c07595ae1c01fc203 Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Tue, 12 Mar 2024 12:19:38 +0100 Subject: [PATCH] fix(web): asset upload progress (#7882) --- web/src/lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 (options: UploadRequestOptions): Promise<{ }); if (onProgress) { - xhr.addEventListener('progress', (event) => onProgress(event)); + xhr.upload.addEventListener('progress', (event) => onProgress(event)); } xhr.open('POST', url);