Post Transfer Actions tokens can be passed as command line arguments to the Post Transfer Action executable. These tokens are replaced by actual values based on the file transfer.
Tokens must be preceded and followed by a dollar sign ($), for example $TIME$.
You can enclose tokens in quotation marks. This might be required to pass arguments that include spaces or special characters.
The following tokens are available:
Description |
Sample Output |
|
---|---|---|
CLIENT_IP |
The IP address of the client system. |
fe80::21a5:4df7:fdce:6951 |
DATE |
The date of the transfer. The format for the date is determined by the locale setting of the server. |
05/28/2014 |
FILENAME |
The name of the uploaded file. |
myfile.txt |
FILE_HASH |
The SHA-1 hash of the uploaded file. |
ebd90566a6a5d7c66a784839cab05b08949a9141 |
FILE_PATH |
The path—without the filename—to the destination directory on the Transfer Site file server. |
C:\Base directory\Gateway\transfersite |
FILE_SIZE |
The file size (in bytes). |
7326 |
FULL_PATH |
The full path—including the filename—of the destination file on the Transfer Site file server. |
C:\Base directory\Gateway\transfersite\myfile.txt |
INITIATOR_EMAIL * |
The email of the client user that uploaded the file. |
joe@acme.com |
INITIATOR_USERID |
The domain and user ID of the client user that uploaded the file, in the format: domain\user. |
mydomain\joe |
TIME |
The time of the transfer on the Reflection Secure Shell Proxy. |
14:26:59 |
TIMEZONE |
The time zone of the Gateway Administrator server. |
-0700 |
TRANSFER_SITE_NAME * |
The Transfer site name from New/Edit Transfer Site. |
Accounting department files |
* - Supported in Gateway Administrator Post Transfer Actions, but not in Reflection for Secure IT Post Transfer Actions.