summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaster4385 <venkatesh@tablaster.dev>2024-07-25 21:48:40 +0530
committerBlaster4385 <venkatesh@tablaster.dev>2024-07-25 21:48:40 +0530
commit8df2002e0bca869fb086493e60f5dd22d83b823f (patch)
tree5f95b9b6a5ede9d1e573c72474299b436a863648
parentd7d69f6d2fe6dad10057a6d45fbf0b0d91ed9355 (diff)
feat: disable file input while uploading
-rw-r--r--client/assets/index.js2
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;
}
});
}