ZennoLab Assemblies Documentation
FtpUploadFile Method (ZennoPoster)
Example 

Type: System.String

The address of the FTP server.

Type: System.Int32

The port of the FTP server.

Type: System.String

The FTP protocol. It can be "FTP", "sFTP", or "FTPs".

Type: System.String

The login of the FTP server.

Type: System.String

The password of the FTP server.

Type: System.String

The proxy string in format: login:pass@ip:port OR ip:port.

Type: System.String

The destination path.

Type: System.String

The path to the file.

Uploads the specified file.
Syntax
public static void FtpUploadFile( 
   string host,
   int port,
   string protocol,
   string login,
   string pass,
   string proxy,
   string serverPath,
   string localPath
)

Parameters

host

Type: System.String

The address of the FTP server.
port

Type: System.Int32

The port of the FTP server.

protocol

Type: System.String

The FTP protocol. It can be "FTP", "sFTP", or "FTPs".

login

Type: System.String

The login of the FTP server.

pass

Type: System.String

The password of the FTP server.

proxy

Type: System.String

The proxy string in format: login:pass@ip:port OR ip:port.

serverPath

Type: System.String

The destination path.

localPath

Type: System.String

The path to the file.

Example
The following example shows call the FtpUploadFile method.
ZennoPoster.FtpUploadFile({host}, {port}, {protocol}, {login}, {password}, {proxy}, {directoryToUploadPath}, {filePath});
ZennoLab\CommandCenter\ZennoPoster::FtpUploadFile({host}, {port}, {protocol}, {login}, {password}, {proxy}, {directoryToUploadPath}, {filePath});
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

ZennoPoster Class
ZennoPoster Members
FtpChmode Method
FtpCreateDirectory Method
FtpDeleteDirectory Method
FtpDeleteFile Method
FtpDownload Method
FtpGetList Method
FtpUploadDirectory Method

Send Feedback