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-browser solution is okay, as long as it supports Firefox.
-
Not sure what you ask.. you want HTML5 solution or "old" HTML/JavaScript solution?user447356– user4473562010-11-28 09:40:48 +00:00Commented Nov 28, 2010 at 9:40
-
@Shadow - HTML5 solution is oaky.powerboy– powerboy2010-11-28 10:41:08 +00:00Commented Nov 28, 2010 at 10:41
Add a comment
|
2 Answers
You might want to use the Multiple File Upload jQuery plugin, which provides that feature on non-HTML5 browsers.
2 Comments
powerboy
I tried this plugin. It does not work for file field with
multiple attribute. Selecting 30 files one by one is tedious for users.Frédéric Hamidi
@powerboy, I see, looks like I misunderstood what you wanted. I'm afraid you won't be able to do that without HTML5, then...
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.