This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Upload a folder not a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Upload a folder not a file" Watch "Upload a folder not a file" New topic

Upload a folder not a file

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
Has anyone ever done this? Is it possible. I want to bascailly upload a folder, which in turn will upload all the files in that folder.
Please advise.
Chris Baron
Ranch Hand

Joined: Mar 21, 2003
Posts: 1049
No advice, sorry
but this interessts too.
May be it can be done with a zipped folder, wich is unzipped on the server somehow.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60794

I know of no way to get the 'file' input type to allow you to select a folder rather than a file. It doesn't even seem to allow the selection of multiple files. (This control is one of my top candidates for "needs help").
If the folder is zipped into a single file, then it'd be just like uploading any other file (which can then be dealt with on the server however you wish).
[ May 07, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
subject: Upload a folder not a file
Similar Threads
Folder Upload in Java
Browse/Upload Button
Uploading file not working
how to upload a zip folder
Exploded ejb and ear file structure