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.
精彩评论