FTP Upload Action

Description

The FTP Upload action allows you to upload one or more files from your local machine to an FTP server. You must have previously established a connection with an FTP server using the FTP Login step before using this step.

 

FTP Upload Action Properties Dialog
FTP Upload dialog

Parameters

Local File
Specifies the complete path and file name of the file(s) on the local system which is to be uploaded to the FTP Server. For example (exclude quotes):

"c:\docs\budget.xls" (to upload a single file)

"c:\docs\*.*" (to upload all files in the docs folder. The remote file name should be specified the same as the local file if you want to retain the original filename except with UNIX-style forward slahes for example: "/foldername/*.*" (do not include quotes))

"c:\docs\*.xls" (to upload all files with the .XLS extension in the docs folder. The remote file name should be specified the same as the local file if you want to retain the original entensions except with UNIX-style forward slashes for example: "/foldername/*.xls" (do not include quotes))

Remote File
Specifies the name the folder that the file(s) will be uploaded to and the filename(s) that it will be given once uploaded to the server. When using wildcards on the Local file to upload multiple files, be sure to inlude the same wildcard mask at the end of the remote file path if you want to retain the existing filenames and extensions (renaming is also supported by specifying an alternate filename/extension). Also remember that the slashes in the "Remote File" must be UNIX-style forward slashes (/) as opposed to the DOS/Windows style backslashes (\) used in the local file parameter. The following examples are valid entries for a remote file:

"/test.txt" (the file that was upload will go into the root (top-level) folder of the server and will be named test.txt)

"/foldername/test.txt" (the file that was upload will go into the "foldername" folder of the server and will be named test.txt)

"/foldername/*.txt" (in this example the user specified a wildcard mask of *.txt in the local file -- the files will retain their names and go into the foldername folder on the FTP server)

Note that the root folder (/) should be included for relaibility and a fully qualified path and filename.

Transfer Type
Specifies the transfer type that should be used. The following transfer types are available:

Default - uses the default transfer type for the connected server

ASCII - specifies that the file transfer should take place in ASCII mode which is for text files.

Binary- specifies that the file transfer should take place in Binary mode which is for non-text files such as graphics or word processor documents.

Include subdirectories
If enabled and a wildcard mask is specified (such as *.* or *.txt). AutoMate will search into any sub folders for files matching that pattern. When disabled, AutoMate only processes files in the current and/or specified folder.

 

Notes

The FTP Upload action supports wildcards. Using wildcards, you can upload a series of files that match a particular mask, all in one step.

You can use as many FTP Upload steps between an FTP Login and FTP Logout as you desire.

Of course, this step will only work providing you have rights on the FTP server to perform it.

Related Topics:

FTP Quick Upload Action

FTP Quick Download Action

FTP Login Action

FTP Rename Action

FTP Download Action

FTP Delete Action

FTP Create Directory Action

FTP Remove Directory Action

FTP Logout Action

FTP Change Directory Action

Other Available Actions