如何选择多个文件进行上传?
如何选择多个文件进行上传:
How to select multiple files for upload :
推荐答案
这取决于浏览器.较新版本的 firefox 和 chrome 支持这一点,因为它们开始实现 HTML5 规范.这是语法:
This depends on the browser. Newer versions of firefox and chrome support this because they started to implement HTML5 specification. This is the syntax:
<input type="file" multiple=""/>
Firefox >= 3.6、Chrome >= 2、Safari >= 4 支持多文件输入.
Firefox >= 3.6, Chrome >= 2, Safari >= 4 support multiple file input.
对于较旧的浏览器,唯一好的解决方案是 Flash 或 javascript 插件.这是 jquery 上传者的一个很好的资源(有些支持多个文件):http://creativefan.com/10-ajax-jquery-file-uploaders/
For older browsers the only good solutions are flash or javascript plugins. Here is a good resource for jquery uploaders ( some support multiple files ): http://creativefan.com/10-ajax-jquery-file-uploaders/
相关文章