An NDoc Documented Class Library

FTPConnection.UploadFile Method (String, String)

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

public virtual void UploadFile(
   string localPath,
   string remoteFile
);

Parameters

localPath
Path of the local file.
remoteFile
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 to change the position if required.

See Also

FTPConnection Class | EnterpriseDT.Net.Ftp Namespace | FTPConnection.UploadFile Overload List