Forum Moderators: open
I don't think there's a solution to the question of multiple file selection from a single use of a file chooser. With scripting, a file chooser could be used multiple times to feed filepaths to a hidden field, or multiple choosers could be used (like Geocities upload).
My (possibly unprogressive) thinking is that if there were a 'single use' solution, and it were reliable, then we would see it being used on the web. Does seem odd that it's not possible though.
I guess that's all that's being asked for here. I've tried selecting multiple files with an <input type="file">, but no browser will let me select more than one file at a time, as a filechooser normally will.
(My disagreement about the other stuff is irrelevant here)
I think the main problem here is that yes js is blind directorywise
That's not quite the point I was making.
From one perspective, one could consider core Javascript unable to do any of these things. It has no alerts or file choosers, and relies on its host's API for input and output of all kinds.
With security priveleges, Javascript (as JScript in IE/Win) can call on the ShellApplication object to launch a browse dialog that does allow multiple file selection. The standard IE API doesn't include a dialog with such a feature. Why?
This can be done quite easily with vbscript fso and also for local applications... I was just investigating javascript's sandpit limits ... :-(
This can be done quite easily with vbscript fso
And equally with JScript/FSO. The pivotal factor is the methods provided by the FSO, not the scripting language (although VBScript does have native in/out dialogs).
- actually, the file chooser I was thinking of doesn't need FSO, rather the Shell.Application object, and it's browseForFolder method.
new ActiveXObject("Shell.Application").browseForFolder(0,'choose', 0x4000, 0); That statement will open the dialog, with files visible, in IE/Win (once it is allowed security previleges).
It doesn't actually do anything else, as is.
All pointless though, 'cos I can't get that to select multiple ile either!