Uploading Files to FTP
This task will import a file from the local file system to a remote FTP Server.
Settings
FTP Connection
Required
The FTP Connection to deleteĀ from. See the Connecting to FTP Server article for more information on how to create/manage connections.
Directory
Required
Initial Directory to move to on FTP Server e.g. /webdata
. It is important that you use the 'Text or script' data type instead of 'Folder, HTTP or FTP location' for this setting. This will prevent Zynk treating it as a relative path and converting it to an absolute path on the local file system.
Input File
Required
The file to be uploaded from local PC.
Output File
Required
The name to save the file on FTP server. It is important that you use the 'Text or script' data type instead of 'File' for this setting. This will prevent Zynk treating it as a relative path and converting it to an absolute path on the local file system.
Overwrite File
Required
Set to true to always overwrite file on server, otherwise file will not be copied to server.
Prepend Timestamp
Required
Set to True
to have a timestamp added to the filename during the upload based on the Timestamp Format provided. Defaults to False
.
Retry Count
Required
The number of times to retry the import if an error occurs.
Temporary Import Settings
Settings to allow using a temporary file name during the import, and then rename once the import is complete. This setting can be useful when the files imported to the FTP server are processed automatically, as it can be used to prevent the files being processed before the import has completed.
Tempory Import Setting
Required
- TemporaryFile - to use give the output file a different file extension whilst the import is taking place.
- TemporaryDirectory - to place the output file in a sub-directory whilst the import is taking place.
- NotEnabled - to disable the use of a temporary file extension or directory.
Temporary Directory
Optional
The sub-directory to save the file to whilst the import is taking place
Temporary File Extension
Optional
The file extension to use whilst the import is taking place (eg .tmp).
Timestamp Format
Dependent
Used to control the format of the timestamp to prepend to file names if the setting is enabled. Defaults to yyyyMMddHHmmssffff
.