This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
Here's a little HTML form that allows the user to select a file and upload it:This takes care of allowing a user to select a file from any directory. If you've ever attached a file to an e-mail in Hotmail or any other web e-mail program, they all use something like this only prettier.
Joined: Dec 07, 2006
Thanks for the sample code
what im trying to do is to let the user press a button, perhaps "select directory", and a pop up screen comes up and the user can select a directory where there are multiple files that the user wants to upload,
the html code is brilliant for a single file but what happens if there is multiple files in a directory that the user wants to upload?