This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


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.
 
GeeCON Prague 2014
 
subject: Folder Upload in Java