如何用< input type ="文件"选择多个文件&gt ;?? [英] How to select multiple files with <input type="file">?

查看:135
本文介绍了如何用< input type ="文件"选择多个文件&gt ;??的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

解决在HTML5中,您可以添加多个属性来选择更多

 < input type =filename =filefieldmultiple =multiple> 






旧的答案:


每个< input type =file/> 只能选择一个文件。如果你想
发送多个文件,你将不得不使用多个输入标签或使用
Flash或Silverlight。


How to select multiple files with <input type="file">?

解决方案

New answer:

In HTML5 you can add the multiple attribute to select more than 1 file.

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


Old answer:

You can only select 1 file per <input type="file" />. If you want to send multiple files you will have to use multiple input tags or use Flash or Silverlight.

这篇关于如何用&lt; input type =&quot;文件&quot;选择多个文件&gt ;??的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆