Skip to content

Post Transfer Action Tokens

Post Transfer Actions tokens can be passed as command line arguments to the PTA 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 may be required to pass arguments that include spaces or special characters.

The following tokens are available:

Token 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 server. C:\Users\joe
FILE_SIZE The file size (in bytes) 7326
FULL_PATH The path -- including the filename -- to the destination file on the server. C:\Users\joe\myfile.txt
INITIATOR_USERID The domain name 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 server. 14:26:59
TIMEZONE The time zone on the server. -0700

More information