BE_FTP_Upload
BE_FTP_Upload(url ;data ;{ username ;password})
Uploads the container fielddata 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 theBE_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 theBE_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/" & FTPTest::File ; FTPTest::File )
BE_FTP_Upload ( "sftp://example.com:2000/path/folder/" & FTPTest::File ; FTPTest::File ; "account" ; "password" )