The FTP Upload action is used to upload files to an FTP server. The FTP Log On action must be used first to begin the FTP transaction and connect with the server.
From the Task Builder Available Actions pane, open the Internet\FTP folder and double-click the FTP Upload action or drag it into the Steps pane.
In the Local files box, enter the path and file name for the files to be uploaded, or click the Open Folder button and navigate to the file or folder. You can use asterisk (*) and question mark (?) as wildcard characters. For example, use *.DOC to include all files in the selected folder with a .DOC extension. Separate multiple entries with a pipe symbol (|). Example: C:\sourcefoldername\filename.txt|C:\sourcefoldername\*.doc
In the Remote file
box, enter the fully qualified UNIX path and file name for the destination
location on the FTP server, or click the Open
Folder button, click Connect,
and use the FTP browser to navigate to the file or folder.
Folders that do not exist will be created at runtime provided the logon user has the rights to do so.
In the Session name box, enter the name of the FTP transfer session. The name is set in the FTP Log On action.
Click the Options tab and select or clear the check boxes according to the following guidelines:
Include subfolders: includes the subfolders of the selected source folder. If this is not selected, the files stored directly in the selected folder will be uploaded and the subfolders will be ignored.
Preserve folder structure: maintains the folder structure for the subfolders as it exists in the source location. If this is not selected, files from the subfolders are stored directly in the destination folder.
Only folder structure: preserves the folder structure for the subfolders, but does not upload the files within the subfolders.
Overwrite existing files: overwrites any files in the destination location that have the same names as the uploaded source files. If this is not selected, files that already exist are skipped.
Only if exists in destination: uploads only files that already exist in the destination location. Ignores all other files in the selected source folder.
file: appends data from the source files to data in the destination
Note: If neither Overwrite existing files or Append file is selected, the step will fail if all destination files already exist.
Turn archive attribute off: turns off the Windows archive attribute in the source files. This indicates to many backup programs that the file has already been backed up.
In the Transfer type box, select ASCII if you are uploading text files and want to use ASCII. The default is Binary.
In the Exclude mask box, enter the names of any files or folders you want to exclude from the upload. You can use asterisk (*) and question mark (?) as wildcard characters. Separate multiple entries with a pipe symbol (|).
To exclude files from the upload based on date, select the Only if newer than or Only if older than check boxes. Then use the date and time boxes to select the desired date and time. You can also click the Custom button and select a limiter such as Last 24 hours, or you can select Expression and enter an expression.
To limit the upload according to file attributes, click the Attributes tab and then select On or Off for any attributes that you want used as criteria in the file selection. The default is Doesn't matter, which means the attribute will be ignored. The attributes to select from are: Read-only, Archive, System, Hidden, and Compression.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
When finished, click OK to save settings and close the properties dialog window.
Adding Task Steps
FTP Upload Action