Upload a local file to the FTP server in the current working directory.
Namespace: EnterpriseDT.Net.FtpAssembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40
Syntax
C# |
---|
public virtual void UploadFile( string localPath, string remoteFile ) |
Visual Basic |
---|
Public Overridable Sub UploadFile ( _ localPath As String, _ remoteFile As String _ ) |
Visual C++ |
---|
public: virtual void UploadFile( String^ localPath, String^ remoteFile ) |
Parameters
- localPath
- Type: System..::..String
Path of the local file.
- remoteFile
- Type: System..::..String
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.