Moo_FTPUpload  -  Upload a file via FTP.

Moo_FTPUpload ( sServer; sUser; sPassword; sLocalFile; sRemotePath; bOverwrite; bProgress );

This function uploads a file via FTP.

Parameters

NameTypeRequiredDefaultDescription
sServerStringYes FTP Server to connect to.
sUserStringYes FTP username.
sPasswordStringYes FTP password.
sLocalFileStringYesTemp FolderThe local file to upload.
sRemotePathStringYes The remote folder path.
bOverwriteBooleanNoFalseOverwrite remote file if exists.
bProgressBooleanNoFalseShow 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 CodeDescription
Moo_FTPUpload|Err_1Invalid number of arguments.
Moo_FTPUpload|Err_2Invalid number of arguments.
Moo_FTPUpload|Err_3Invalid sServer input parameter.
Moo_FTPUpload|Err_4Invalid sUser input parameter.
Moo_FTPUpload|Err_5Invalid sPassword input parameter.
Moo_FTPUpload|Err_6Error opening internet connection.
Moo_FTPUpload|Err_7Error opening ftp connection.
Moo_FTPUpload|Err_8Source file input doesn't exist.
Moo_FTPUpload|Err_9Invalid source file input.
Moo_FTPUpload|Err_10Error setting remote ftp directory.
Moo_FTPUpload|Err_11File already exists on ftp server.
Moo_FTPUpload|Err_12Error opening local source file.
Moo_FTPUpload|Err_13Error reading local source file.
Moo_FTPUpload|Err_14Upload file size mismatch.

Related Functions