Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using an FTP Client library in C# whose author is Jaimon Mathew.

The library is working fine but the file being uploaded gets uploaded only at the root director of my ftp server. I have tried changing the remote path but it is still uploading in the root directory?
C#
ft_client.FtpClient ftp = new ft_client.FtpClient(host_server, host_user,host_password);
            ftp.Login();        
            

           ftp.RemotePath  =host_server "/essai/";
                     
            ftp.Upload(@"d:\xxx.txt");


Any help is greatly appreciated.

Thanks.
Posted
Updated 12-Oct-11 0:23am
v4
Comments
Slacker007 12-Oct-11 6:17am    
Edit: readability.

1 solution

Ask Jaimon Mathew, as you say, he wrote it who better to answer you. We can't as we know nothing about that library that someone somewhere has written.
 
Share this answer
 
Comments
Espen Harlinn 13-Oct-11 17:25pm    
Good point :)
Simon Bang Terkildsen 14-Oct-11 5:59am    
hehe, thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900