fix: prevent confirmation message after aborting upload
This commit is contained in:
parent
79aac661d1
commit
a33c697360
@ -205,6 +205,9 @@ export function abortAllUploads() {
|
|||||||
}
|
}
|
||||||
if (CURRENT_UPLOAD_LIST[filePath].upload) {
|
if (CURRENT_UPLOAD_LIST[filePath].upload) {
|
||||||
CURRENT_UPLOAD_LIST[filePath].upload.abort(true);
|
CURRENT_UPLOAD_LIST[filePath].upload.abort(true);
|
||||||
|
CURRENT_UPLOAD_LIST[filePath].upload.options!.onError!(
|
||||||
|
new Error("Upload aborted")
|
||||||
|
);
|
||||||
}
|
}
|
||||||
delete CURRENT_UPLOAD_LIST[filePath];
|
delete CURRENT_UPLOAD_LIST[filePath];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user