File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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.
cb
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61437
    
  67

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).
hth,
bear
[ May 07, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Upload a folder not a file