Re: File doesn't get transmitted using upload a - WeOnlyDo Discussion board

Re: File doesn't get transmitted using upload a (General questions)

by Kamal, Tuesday, January 04, 2005, 15:12 (7060 days ago) @ wodSupport

I believe it is to do with the RemotePath property. Kamal is the folder name in the ftp server, i even tried the following

(
- ftp://FTP Server IP Address in numbers/Kamal ;
- @ FTP Server IP Address in numbersKamalkt.txt ;
- sftp://FTP Server IP Address in numbers/Kamal ;
etc...
)

but nothing worked. all return the same error.


This is the code used:

------------------------------------------------

SFTP sftp;

private void TestwodSFTPComponent()
{
sftp = new SFTP();
sftp.Blocking = true;
sftp.Hostname = FTP Server IP Address in numbers ;
sftp.Port = 22;
sftp.Login = username ;
sftp.Password = password ;

sftp.LocalPath = @ C: Test_FTP_File kt.txt ;
sftp.RemotePath = /Kamal ;

try
{
sftp.Connect();
sftp.PutFile(sftp.LocalPath, sftp.RemotePath);
}

catch{MessageBox.Show(sftp.LastError.ToString());}

finally{sftp.Disconnect();}

---------------------------------------------------

Thank you.


Complete thread: