edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Click or drag to resize

FTPConnectionUploadFile Method (String, String)

Upload a local file to the FTP server in the current working directory.

Namespace:  EnterpriseDT.Net.Ftp
Assembly:  edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntax
public virtual void UploadFile(
	string localPath,
	string remoteFile
)

Parameters

localPath
Type: SystemString
Path of the local file.
remoteFile
Type: SystemString
Name of remote file in current working directory.
Remarks

The stream is closed after the transfer is complete if CloseStreamsAfterTransfer is true (the default) and are left open otherwise. If the stream is left open the its position will be at the end of the stream. Use Seek(Int64, SeekOrigin) to change the position if required.

See Also