From 8df2002e0bca869fb086493e60f5dd22d83b823f Mon Sep 17 00:00:00 2001 From: Blaster4385 Date: Thu, 25 Jul 2024 21:48:40 +0530 Subject: feat: disable file input while uploading --- client/assets/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/assets/index.js b/client/assets/index.js index fc53eae..b18b3d8 100644 --- a/client/assets/index.js +++ b/client/assets/index.js @@ -86,6 +86,7 @@ function setupUploadForm() { uploadButton.style.display = 'none'; progressBar.style.display = 'block'; + fileInput.disabled = true; try { await uploadFileInChunks(file, progressFill); @@ -96,6 +97,7 @@ function setupUploadForm() { } finally { progressBar.style.display = 'none'; uploadButton.style.display = 'inline-block'; + fileInput.disabled = false; } }); } -- cgit v1.2.3-73-gaa49b