fix: prevent confirmation message after aborting upload

pull/5270/head
Ramires Viana 2025-07-10 17:40:40 -03:00
parent 79aac661d1
commit a33c697360
1 changed files with 3 additions and 0 deletions

View File

@ -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];
}