Zum Inhalt

WriteFTPFile (Opus Funktion)

Beschreibung

Uploads a blob to an FTP server under the specified path and filename.

Argumente

Name

Typ

Beschreibung

Server

string

hostname or IP address of the FTP server

UserName

string

FTP login name

Password

string sealed

FTP login password (sealed)

Path

string

remote directory path to change into before writing

Filename

string

name under which the file is stored on the server

Data

blob

file content to upload

Port

integer

FTP port number (typically 21)

Passive

integer

1 = use passive mode

0 = active mode

Rückgabewert integer

0 on success, non-zero error code on failure

Beispiel

Ls_Result = WriteFTPFile("62.138.0.46"/*"x-interface.smt.ch"*/,"smt","ddaf8d0148e1ebc3e9e032d1e4416a20","/"+Ls_Folder,Ls_Name,Lo_CSV,21,1);

Siehe auch