bestprotop / jquery-multifile-plugin

Automatically exported from code.google.com/p/jquery-multifile-plugin
0 stars 0 forks source link

Could you put multiple=multiple in the <input tag #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This will allow user to highlight multiple files to upload. This will works 
similar to the web client of Transmission, the Bitorrent software.

many thanks 

Original issue reported on code.google.com by sparkc...@gmail.com on 15 Mar 2012 at 11:51

GoogleCodeExporter commented 9 years ago
The ability to select multiple files at once (within the dialog) is controlled 
by the browser and cannot be enforced by javascript.

This plugin just creates a new file input element everytime the user selected a 
file which allows the user to select a file, then another, then another and so 
on...

If you need the user to select several files at once you have 2 options...

a) You can use the "multiple" attribute (HTML5, not currently supported in IE)
http://www.w3schools.com/html5/att_input_multiple.asp

b) You can use flash

...both of which bypass the need for this plugin.

This plugin is a cross-browser xHTML and HTML4 solution allowing the use to 
select multiple files (one at a time).

Original comment by diego.a...@gmail.com on 16 Mar 2012 at 1:04

GoogleCodeExporter commented 9 years ago
Some browsers already support the   multiple=multiple attribute. However,
is it possible to modify the plugin to deal with it?  I put  multiple=multiple
in the <input type='files' > tag,  highlight multiple files, and click OK,
but the plugin only accept one from the list. I believe it is a very good
feature to have.

As I already mention, the webclient of Transmission allows one to upload
multiple .torrent files at the same time (by highlight more than one files
and submit).  So technically it is possible.

Original comment by sparkc...@gmail.com on 16 Mar 2012 at 2:33

GoogleCodeExporter commented 9 years ago
As far as I'm aware, this is simply not possible at the moment!
The browsers give very limited access to the file input element (for obvious 
reasons).

See this page...
http://fyneworks.com/jquery/multiple-file-upload/test/issues/142/
...use firefox with firebug or make sure you have chrome's console open to see 
the messages.

No matter how many files you select, the element's value property only ever 
lists the first file selected. I don't see a way to make the plugin handle each 
individual file selection because the browser never exposes the selection to 
the script.

Suggestions welcome!

Original comment by diego.a...@gmail.com on 16 Mar 2012 at 3:23