Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
5.6k views
in Java FTP by (240 points)
How do I set mode (PASV/ACTIVE) when using uploadURLFile with FileTransferProtocol :?:

2 Answers

0 votes
by (162k points)
getAdvancedFTPSettings().setConnectMode(FTPConnectMode.ACTIVE)
0 votes
by (240 points)
If I use FTPClient I can change the behavior and set ACTIVE/PASSIVE mode as you describe.
But when I use the static method FileTransferClient.uploadURLFile I don't have those options, or do I?

I'd like to use that method because of the use of the protected method prepareURLTransfer.

Second, how do you manage to get path to work. In an other issue (http://www.enterprisedt.com/forums/viewtopic.php?t=3321) I have posted I need to strip the first slash character to get it to work with the path.

Now I have solved all of it by extending FileTransferClient.

Categories

...