Moo_FTPUpload ( sServer; sUser; sPassword; sLocalFile; sRemotePath; bOverwrite; bProgress );
This function uploads a file via FTP.Parameters
Name | Type | Required | Default | Description |
sServer | String | Yes | FTP Server to connect to. | |
sUser | String | Yes | FTP username. | |
sPassword | String | Yes | FTP password. | |
sLocalFile | String | Yes | Temp Folder | The local file to upload. |
sRemotePath | String | Yes | The remote folder path. | |
bOverwrite | Boolean | No | False | Overwrite remote file if exists. |
bProgress | Boolean | No | False | Show upload progress. |
Return Value
Returns true if the upload succeeded, or an error code.
Notes
Can optionally be used with the Moo_ProgressOptions function.
Errors
Error Code | Description |
Moo_FTPUpload|Err_1 | Invalid number of arguments. |
Moo_FTPUpload|Err_2 | Invalid number of arguments. |
Moo_FTPUpload|Err_3 | Invalid sServer input parameter. |
Moo_FTPUpload|Err_4 | Invalid sUser input parameter. |
Moo_FTPUpload|Err_5 | Invalid sPassword input parameter. |
Moo_FTPUpload|Err_6 | Error opening internet connection. |
Moo_FTPUpload|Err_7 | Error opening ftp connection. |
Moo_FTPUpload|Err_8 | Source file input doesn't exist. |
Moo_FTPUpload|Err_9 | Invalid source file input. |
Moo_FTPUpload|Err_10 | Error setting remote ftp directory. |
Moo_FTPUpload|Err_11 | File already exists on ftp server. |
Moo_FTPUpload|Err_12 | Error opening local source file. |
Moo_FTPUpload|Err_13 | Error reading local source file. |
Moo_FTPUpload|Err_14 | Upload file size mismatch. |
Related Functions