Encapsulates the AutoMate™ action in the “FTP” group, “FTP Upload.” The method attempts to upload the specified file to the FTP server previously connected to using the FTPLogin method.
Declaration
function FTPUpload (varFTPSource As Variant,
varFTPDest As Variant,
intTransType As Integer,
intIncludeSubDirs As Integer) As Integer
Parameters
varFTPSource
The full path of the local file to be uploaded to the FTP server.
varFTPDest
The full path on the FTP server of where the file should be placed.
intTransType
The transfer type AutoMate™ should use to download the file:
Value |
Meaning |
1 |
Default (Auto-detect) |
2 |
ASCII/Text |
3 |
Binary |
intIncludeSubDirs
If set to “0”, the upload command applies to only the current directory. If set to “1”, the upload command will go through all subdirectories as well.
Description
The FTPUpload method will attempt to upload the file specified by varFTPSource to the FTP server using the filename varFTPDest.
A connection to the FTP server must have been previously established by a successful called to FTPLogin .
NOTE: The Action2 FTP methods (with the exception of FTPQuickSend and FTPQuickRetrieve) may not function properly in the AutoMate™ BASIC IDE. To more accurately use these functions, run the script from within an AutoMate™ task using the “Run a BASIC Script” action.