Uploads local file or folder to a remote FTP location.
If the source is a folder it is uploaded recursively.
Namespace:
KetLabs.FTPAssembly: Ftp (in Ftp.dll) Version: 1.0.0.19105 (1.0.0.*)
Syntax
| C# |
|---|
public void Upload( string localSource, string remoteDestination ) |
| Visual Basic (Declaration) |
|---|
Public Sub Upload ( _ localSource As String, _ remoteDestination As String _ ) |
| Visual C++ |
|---|
public: void Upload( String^ localSource, String^ remoteDestination ) |
Parameters
- localSource
- Type: System..::.String
Local file or folder to be uploaded
- remoteDestination
- Type: System..::.String
Remote destination where it will be uploaded
Remarks
If a folder is specified instead of a file, the folder is uploaded recursively.