From dabc088b910c9396ac2d754e59b92256c72af88a Mon Sep 17 00:00:00 2001 From: vcheckzen <18008498+vcheckzen@users.noreply.github.com> Date: Sat, 21 Sep 2024 13:23:04 +0800 Subject: [PATCH] fix: select multiple files for uploading --- front-end/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/front-end/index.html b/front-end/index.html index d25d3015..f320b010 100644 --- a/front-end/index.html +++ b/front-end/index.html @@ -1978,7 +1978,6 @@ type="file" id="file-upload-input" multiple="multiple" - type="file" /> 未选择文件 @@ -1997,7 +1996,7 @@ } else if (fileInput.files.length > 1) { fileNameDisplay.textContent = fileInput.files[0].webkitRelativePath?.split('/')[0] || - `共 ${fileInput.length} 个文件`; + `共 ${fileInput.files.length} 个文件`; } else { fileNameDisplay.textContent = '未选择文件'; }