BE_FTP_Upload

BE_FTP_Upload ( url ; data ; { username ; password } )

Uploads the container field data to the ftp url specified.

Parameters:

- url : the ftp url to upload to.

- data : the container field file to upload.

- username : the username if the url requires authentication.

- password : the password if the url requires authentication.

Keywords:

FTP Upload

Version History:

- 3.0 :

Notes:

- Authentication types can be set with the BE_CurlSetOption function. You can also set it to create folders that don't exist by setting this flag before upload :

BE_CurlSetOption ( "CURLOPT_FTP_CREATE_MISSING_DIRS" ; "1" )

- Check for errors using the BE_GetLastErrorfunction and use https://curl.haxx.se/libcurl/c/libcurl-errors.html for error details.

Code Examples:

BE_FTP_Upload ( "ftp://example.com/path/folder/" & FTP::File ; FTP::File )

BE_FTP_Upload ( "sftp://example.com:2000/path/folder/" & FTPTest::File ; FTPTest::File ; "account" ; "password" )

Still need help? Contact Us Contact Us