summaryrefslogtreecommitdiff
path: root/public/static/scripts/form.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/static/scripts/form.js')
-rw-r--r--public/static/scripts/form.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/public/static/scripts/form.js b/public/static/scripts/form.js
index f2736c1..3823af0 100644
--- a/public/static/scripts/form.js
+++ b/public/static/scripts/form.js
@@ -20,7 +20,11 @@ function showFile(file) {
fileURLWrapper.style.display = 'flex';
}
} else {
- fileUploadWrapper.innerHTML = `<h1>File: ${file.name}</h1>`;
+ if (file.length == 1) {
+ fileUploadWrapper.innerHTML = `<h1>File: ${file[0].name}</h1>`;
+ } else {
+ fileUploadWrapper.innerHTML = `<h1>Selected ${file.length} files</h1>`;
+ }
if (fileURLWrapper) {
fileURLWrapper.style.display = 'none';