I’m using Nuget package FtpSharpLib.Core
, and this is my code:
FtpCredential ftpCredential = new FtpCredential();
FtpClient _client = new FtpClient(ftpCredential.Host, ftpCredential.Username, ftpCredential.Password);
var localFilePath = @"C:UsersKOWDownloadsnil tech it.jpg";
var remoteFilePath = "/test folder";
await _client.Connect();
await _client.UploadFile(localFilePath, remoteFilePath);
await _client.Disconnect();
I get an error
550 – The filename, directory name, or volume label syntax is incorrect
New contributor
Zakir is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.