BE_FTP_Upload

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

Uploads the to the ftp url specified, the container field data.

Version : 3.0

Parameters :
url : the ftp url to upload to.
data : the container field file to upload.
username ( optional ) : The username if the url requires authentication.
password ( optional ) : The password if the url requires authentication.

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_GetLastError function and use https://curl.haxx.se/libcurl/c/libcurl-errors.html for error details.

Examples :

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

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

Still need help? Contact Us Contact Us