0 votes
by (120 points)
edited by

string ftpHost = "xxxxxxxxxx.com";
string ftpUser = "xxxxxxxxxxxxxx";
string ftpPassword = "xxxxxxxxxxxx";

Rebex.Net.Ftp client = new Rebex.Net.Ftp();
Rebex.Licensing.Key="Trial key here";

client.Connect(ftpHost);

client.Login(ftpUser, ftpPassword);

var c = client.IsConnected; 
System.Diagnostics.Debug.WriteLine(c); // it returns true:

client.PutFile(photo.AlbumPath, @"/home/esggrouponline/public_html/uploads/linesimg/");

1 Answer

0 votes
by (75.8k points)

client.Upload(photo.AlbumPath, @"/home/esggrouponline/public_html/uploads/linesimg/");
...