fix(front/file-uploader): prevent starting upload if another upload is running

This commit is contained in:
Alice Gaudon 2022-03-02 11:06:53 +01:00
parent 79fb4e28c8
commit 5477c858ef

View File

@ -25,7 +25,9 @@
e.preventDefault(); e.preventDefault();
uploadForm = this; uploadForm = this;
processNextUpload(); if (selectedFiles && !uploading) {
processNextUpload();
}
} }
async function processNextUpload() { async function processNextUpload() {