A Post Transfer Action (PTA) is a program that is invoked on the server after a file has been successfully uploaded to the server.
To configure a Post Transfer Action
Go to
> .Click
to create a new PTA.For information about configuring
, , and , refer to the dialog box help and the examples below.Save your settings (
> ).Examples
Use these examples as models for testing and configuring PTAs.
Example 1: Send a directory listing to the log file
This example sends a directory listing to the log file. The default file filter triggers the action after every upload. The program for these PTAs must be specified using the full path; in this example it is the path to the Windows cmd command. The $FILE_PATH$ token is used to get the listing of the upload directory. Because the destination directory might include spaces, this token is enclosed in double quotation marks.
.*
:C:\Windows\System32\cmd.exe
:/c dir "$FILE_PATH$"
:NOTE:Use the /c argument when you use the Windows cmd command. This switch specifies that cmd should exit after the specified command is carried out.
Example 2: Copy uploaded PDF documents to specified directory
This example copies uploaded PDF files to an existing destination directory. The file filter uses a regular expression to specify all files with a .pdf file extension.
C:\Windows\System32\cmd.exe
:/c copy "$FULL_PATH$" c:\fxgout
:Error messages and PTA output can be viewed in either the Windows Event Viewer or the server's debug (text) log file. Windows Event logging is enabled by default, but the default logging level in the Event Viewer does not include the PTA output; you need to increase the Event Viewer logging level to "Information" to see this content. Debug logging to a text file is not enabled by default. For working with PTAs, enabling debug logging to a text file is recommended.
To configure PTA logging to a debug (text) log file
From the
tab, click .Click
. By default, this log is set to , which is sufficient to include PTA output and error messages.You can click
to fine-tune the level of output that is sent to this log. Three settings control PTA output: LOG_I_PTA_ERROR, LOG_I_PTA_RESULT, and LOG_T_PTA.Save your settings (
> ).To view the text log file
From the Reflection for Secure IT console
menu, select