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 Java in General and the fly likes Folder Upload in Java 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 » Java in General
Bookmark "Folder Upload in Java" Watch "Folder Upload in Java" New topic
Author

Folder Upload in Java

Namrta Pandey
Ranch Hand

Joined: Jul 22, 2008
Posts: 36
Hi All,

I am writing a utility where in I have to upload arount 1000 files from client side. Can we upload folder in java instaed of files upload?

Thanks in Advance,
Namrta
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

What are you using to upload? Ftp, Socket, HTTP?


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

make the folder as a file like zip and then upload.
Namrta Pandey
Ranch Hand

Joined: Jul 22, 2008
Posts: 36
Wouter Oet : I am using FTP
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

In that case no. You'll need to iterate through the files and send them one by one. Or follow the suggestion that Seetharaman made.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Folder Upload in Java
 
Similar Threads
Browse/Upload Button
Uploading file not working
Upload a folder not a file
Folder Upload using Java(MultiPartRequest)
how upload all files in a local folder to server