fix(front/file-uploader): prevent starting upload if another upload is running
This commit is contained in:
parent
79fb4e28c8
commit
5477c858ef
@ -25,8 +25,10 @@
|
|||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
uploadForm = this;
|
uploadForm = this;
|
||||||
|
|
||||||
|
if (selectedFiles && !uploading) {
|
||||||
processNextUpload();
|
processNextUpload();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async function processNextUpload() {
|
async function processNextUpload() {
|
||||||
if (nextFileIndex > selectedFiles.length - 1) {
|
if (nextFileIndex > selectedFiles.length - 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user