Skip to content

Commit

Permalink
fix: select multiple files for uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
vcheckzen committed Sep 21, 2024
1 parent 38b51d3 commit dabc088
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions front-end/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1978,7 +1978,6 @@
type="file"
id="file-upload-input"
multiple="multiple"
type="file"
/>
<span class="file-upload-name">未选择文件</span>
<button onclick="uploadFiles()">上传</button>
Expand All @@ -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 = '未选择文件';
}
Expand Down

0 comments on commit dabc088

Please sign in to comment.