From a33c697360bb1dfce38ada5e3d8cafb7180aef2e Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Thu, 10 Jul 2025 17:40:40 -0300 Subject: [PATCH] fix: prevent confirmation message after aborting upload --- frontend/src/api/tus.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/api/tus.ts b/frontend/src/api/tus.ts index 66851928..75b6414c 100644 --- a/frontend/src/api/tus.ts +++ b/frontend/src/api/tus.ts @@ -205,6 +205,9 @@ export function abortAllUploads() { } if (CURRENT_UPLOAD_LIST[filePath].upload) { CURRENT_UPLOAD_LIST[filePath].upload.abort(true); + CURRENT_UPLOAD_LIST[filePath].upload.options!.onError!( + new Error("Upload aborted") + ); } delete CURRENT_UPLOAD_LIST[filePath]; }