File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes FTP Folder Upload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "FTP Folder Upload" Watch "FTP Folder Upload" New topic
Author

FTP Folder Upload

saravanan palanivel
Greenhorn

Joined: Sep 05, 2012
Posts: 9
Hi I am trying FTP for folder upload. In that I choose the folder from my local machine , and its need to be uploaded to the FTP Server. I tried JFileChooser but it working to select files only, not a folder. is there any way to upload a folder to Ftp Server. please help me...
Kapish M Joshi
Greenhorn

Joined: Sep 12, 2012
Posts: 10

HI,

There are very rare ways of doing it, better i would suggest you copy program which can copy a directory structure to FTP. Here is an example for this:




Referance: http://splashtechie.blogspot.in


Apart from this solution the other option can be like, Parsing the directory and accordingly create folders at remote FTP server using your java program and then copy the files to that folder created at FTP server. Even if it doesn't work last solution that i usually prefer is compress the folder with its content and send it to remote machine.


Kapish M Joshi| kjoshi@infocepts.com | InfoCepts
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: FTP Folder Upload
 
Similar Threads
Reading log files from various unix servers through Java program on windows
Uploading file not working
Programmatic download of a file on Web server
Regarding FTP froma remote server
Using FTP in jsp