FGL_GETFILE

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

Syntax

FGL_GETFILE(
   src STRING,
   dst STRING )
  1. src contains the name of the source file to retrieve from the front end workstation.
  2. dst contains the name of the file to write on the server side.

Usage

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

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 write critical server files, the program could transfer files from the client workstation and overwrite critical server files. On the other hand, critical files can be read from the client workstation and copied on the application server. It is in the hands of the programmer to implement file path and/or file content restrictions in the programs using FGL_GETFILE().