PDA

View Full Version : How to Bring the Open File Dialog using Javascript?



bab_ganesh
08-01-2007, 08:09 AM
Hi,

I am the New Member of DD Forum.

Can you please tell me the answer the following..?

* How to bring the Open File Dialog Box using Javascript?
* Can we select multiple files at a time from the File Dialog.??

Please answer me as soon as possible.

Thanks in advance
Ganesh.

jscheuer1
08-01-2007, 01:52 PM
Javascript is not required to bring up the open file dialogue, that can be done with simple HTML:


<input type="file" name="bob">

But, multiple files? This looks promising. It requires the user to choose each one separately, but otherwise simplifies things considerably:

http://the-stickman.com/web-development/javascript/upload-multiple-files-with-a-single-file-element/