UploadFileStreamToServerSFtp

<< Fare clic per visualizzazione il sommario >>

Percorso:  API di piattaforma > Altri servizi > FTP >

UploadFileStreamToServerSFtp

Service

FTP

 

Method

UploadFileStreamToServerSFtp

 

Description

Uploads the content of a stream to the specified SFtp server. If the remote file already exists, it is overridden.

 

Input

Name

Description

Type

Optional

server

Connection and login information for the server.

 

Download FTPSettings data structure.

Dataset

 

sourceStream

The source data reference of process attachment.

Reference

 

remotePath

The path of the remote file. This cannot be a directory.

String

 

checkFileOnServer

True to raise an exception if the file is not on the FTP server after the upload, false otherwise.

Bool

 

Output

Name

Description

Type

Optional

returnValue

Number of bytes transferred.

Long

 

 

Remarks

The server parameter contains the following fields:

"ServerName" (String) -> the server address, either a hostname or a dotted string IP address

"ServerPort" (Int32) -> the server port

"SslMode" (Int32) -> ignored

"UserName" (String) -> the username; if null, "anonymous" is used

"Password" (String) -> password for the given username; if null, "guest" is used

"Passive" (Boolean) -> ignored

"ProxyType" (Int32) -> the proxy type:

o        0 = None (direct connection, default when no proxy is specified)

o        1 = Socks4 (connection through Socks4 proxy)

o        2 = Socks4a (connection through Socks4A proxy (capable of resolving domain names))

o        3 = Socks5 (connection through Socks5 proxy)

o        4 = HttpConnect (connection through HTTP proxy using CONNECT method)

"ProxyHost" (String) -> the hostname of the proxy server

"ProxyPort" (Int32) -> the port of the proxy server

"ProxyUserName" (String) -> a username to submit to the proxy server for authentication

"ProxyPassword" (String) -> a password to submit to the proxy server for authentication

"ProxyAuthenticationMethod" (Int32) -> the type of the proxy server authentication method:

o        0 = Basic (Basic authentication)

o        1 = Ntlm (NTLM authentication)

o        2 = Digest (Digest authentication)

"ProxyBypassProxyOnLocal" (Boolean) -> true to bypass the proxy server for local addresses, otherwise false; the default value is false

"SFtp" (Boolean) -> must be true.