Ok, thanks for your clarification. Sorry it is not possible to specify the upload dir via a SFTP server URL. If you want to specify the upload directory, you can do it via ChangeDirectory method or directly within the PutFile method.Please try the code below and let me know whether it helped:
Sftp sftp = new Sftp();
sftp.Connect("sftp.server.com", 22); // there is no way to specify the upload directory in the connect method
sftp.Login("user", "password");
// to specify the upload dir you have two possibilities:
// 1] either change to the upload directory and then the PutFile method will upload to the current directory like this:
sftp.ChangeDirectory("/upload");
sftp.PutFile(@"C:\myData\test.pdf", "test.pdf");
// 2] or just use the full path (including the upload directory)
// like this:
sftp.PutFile(@"C:\myData\test.pdf", "/upload/test.pdf");
I hope both two short code examples should work for you and Rebex definitely should not be adding an additional subdirectory to your specified parameters. If you still see the additional 'upload' directory with My code snippets above , please post or send to the log of the communication.