Meaningless Drivel is fun!
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
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: 1061
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: 63844

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Upload a folder not a file
It's not a secret anymore!