FGL_PUTFILE

Transfers a file from the application server machine to the front end workstation.

Syntax

FGL_PUTFILE(
   src STRING,
   dst STRING)
  1. src contains the name of the source file to send.
  2. dst contains the name of the file to write on the front end.

Usage

The FGL_PUTFILE() function downloads a file from the application server disk where fglrun is executed to the front-end workstation disk.

Important: Using this function can result in a security hole if you allow the end user to specify the file paths without control. There is not limitation on the file content or file paths: If the user executing the application on the server side is allowed to read critical server files, the program could transfer these files on the client workstation. On the other hand, critical files can be written on the client workstation. It is in the hands of the programmer to implement file path and/or file content restrictions in the programs using FGL_PUTFILE().