From 5477c858efd63ffb5bfefb8dd95b724985c18d62 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Wed, 2 Mar 2022 11:06:53 +0100 Subject: [PATCH] fix(front/file-uploader): prevent starting upload if another upload is running --- src/assets/views/file-uploader.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/assets/views/file-uploader.svelte b/src/assets/views/file-uploader.svelte index 5439f90..0f0e669 100644 --- a/src/assets/views/file-uploader.svelte +++ b/src/assets/views/file-uploader.svelte @@ -25,7 +25,9 @@ e.preventDefault(); uploadForm = this; - processNextUpload(); + if (selectedFiles && !uploading) { + processNextUpload(); + } } async function processNextUpload() {