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
Syntaxpublic virtual void UploadFile(
string localPath,
string remoteFile
)
Public Overridable Sub UploadFile (
localPath As String,
remoteFile As String
)
public:
virtual void UploadFile(
String^ localPath,
String^ remoteFile
)
abstract UploadFile :
localPath : string *
remoteFile : string -> unit
override UploadFile :
localPath : string *
remoteFile : string -> unit
Parameters
- localPath
- Type: SystemString
Path of the local file. - remoteFile
- Type: SystemString
Name of remote file in current working directory.
RemarksThe 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