BE_FTP_UploadFile

BE_FTP_UploadFile


Uploads the to the ftpurlspecified, from the pathToFile.

Parameters:

- url : the ftp url to upload to

- pathToFile : the plugin path on disk

- username : he username if the url requires authentication

- password : The password if the url requires authentication.

Keywords:

FTP Upload File


Version History:

- 4.2 :

Notes:

- Authentication types can be set with theBE_CurlSetOptionfunction. 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.

Code Examples:

BE_FTP_UploadFile ( "ftp://example.com/path/folder/myfilname.txt" ; "/Volumes/HD/Path/To/myfilname.txt" )


BE_FTP_UploadFile ( "sftp://example.com:2000/path/folder/myfilname.txt" ; "/Volumes/HD/Path/To/myfilname.txt" ; "account" ; "password" )


Still need help? Contact Us Contact Us