upload issue

Jul 22, 2011 at 6:14 PM

Hi guys,

I'm having an issue uploading to a sftp folder.

i can connect, read, delete; but when i upload i get no exceptions & it looks like everything is fine. But no file in the folder...

 

i've tried the beginupload & upload methods.. no difference, no files & no errors.  i can upload to the server using filezilla

 

try

{

this

.SFTPclient.ChangeDirectory(remotePath);

 

 

using (var file = File.OpenRead(@"C:\project\bin\Debug\22_7_2011_12_11_WBN.txt;1"

))

{

 

this

.SFTPclient.UploadFile(file, remotePath);

  }

}