小编典典

如何使用<input type =“ file”>选择多个文件?

html

如何选择多个文件<input type="file">


阅读 1768

收藏
2020-05-17

共1个答案

小编典典

在HTML5中,您可以添加multiple属性以选择多个文件。

<input type="file" name="filefield" multiple="multiple">

旧答案:

每个只能选择1个文件<input type="file" />。如果要发送多个文件,则必须使用多个输入标签或使用Flash或Silverlight。

2020-05-17