wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
jQuery in Action, 2nd edition
 
subject: Folder Upload in Java