RTA
RTA

Reputation: 1299

Upload a file by FTP at a specfic location

FTP client class is not connecting

further to this link i just want to know to upload a file in specific directory location for example there is a cross reference in IP and then further a library in cross reference then how would i upload file in library or in precise how would i get connected to ip/cross reference/library for location where i need to upload a file. here i want to mention that i successfully get connected to IP till now.

Upvotes: 0

Views: 128

Answers (1)

CodeChimp
CodeChimp

Reputation: 8154

The constructor of FTPHTTPClient doesn't appear to take a path in the constructor, its just the hostname/ip. Also, most FTP clients use / and not \ as the path separator.

The JavaDoc for FTPClient shows there is a method changeWorkingDirectory(String pathname), which I am guessing is what you want to do.

Upvotes: 2

Related Questions