diff options
author | Blaster4385 <venkatesh@tablaster.dev> | 2024-07-25 21:48:40 +0530 |
---|---|---|
committer | Blaster4385 <venkatesh@tablaster.dev> | 2024-07-25 21:48:40 +0530 |
commit | 8df2002e0bca869fb086493e60f5dd22d83b823f (patch) | |
tree | 5f95b9b6a5ede9d1e573c72474299b436a863648 | |
parent | d7d69f6d2fe6dad10057a6d45fbf0b0d91ed9355 (diff) |
feat: disable file input while uploading
-rw-r--r-- | client/assets/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
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; } }); } |