开发者

HTML file field with multiple files selection and add/remove files functionality

开发者 https://www.devze.com 2023-01-27 01:58 出处:网络
I need to implement a HTML form for submitting data and uploading multiple small files (number of files can vary from 1 to 30). In HTML5, there is a multiple attribute that allows multiple selection i

I need to implement a HTML form for submitting data and uploading multiple small files (number of files can vary from 1 to 30). In HTML5, there is a multiple attribute that allows multiple selection in one file field. I am wondering if it is possible to allow users to add/remove a single file to/from current selection. HTML5 solution is oaky, non-cross-bro开发者_如何学JAVAwser solution is okay, as long as it supports Firefox.


You might want to use the Multiple File Upload jQuery plugin, which provides that feature on non-HTML5 browsers.


Use plupload, it's an easy to use, library-agnostic tool for uploading files. It supports multiple-select, upload queues, pre-upload image resizing and much more.

Internally it uses a number of different runtimes depending on whats available in the browser.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号