Importing Files with SFTP
This task will import one or more files from the local file system to a remote SFTP Server.
Settings
Connection
Required
The SFTP Connection to delete from. See the Connecting to an SFTP Server if you require more information on how to create/manage connections.
Directory
Required
The directory to move to on SFTP 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 imported from local PC. To import multiple files, you can use the 'Use a list' option in the Zynk Object editor, or the output from a List Files task.
Output File
Required
The name to save the file on SFTP 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 allow the file to be overwritten on server if it already exists.
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
.
Timestamp Format
Dependent
Used to control the format of the timestamp to prepend to file names if the setting is enabled. Defaults to yyyyMMddHHmmssffff
.