如何选择具有<输入类型=“文件">的多个文件? [英] How to select multiple files with &lt;input type=&quot;file&quot;&gt;?

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

问题描述

如何用选择多个文件?

推荐答案

新答案:

在 HTML5 中,您可以添加 multiple 属性来选择 1 个以上的文件.

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

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

<小时>

旧答案:


Old answer:

您只能为每个 选择 1 个文件.如果你想发送多个文件,您将不得不使用多个输入标签或使用Flash 或 Silverlight.

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.

这篇关于如何选择具有<输入类型=“文件">的多个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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