This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
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