fgl_upload()

 

Lycia supports transferring files between the client and the server. The  fgl_upload() built-in function is used to pass files in the client-to-server direction.

 

fgl_upload(client_file, server_file)

 

where:

 

Usage

 

The fgl_upload() function allows retrieving files stored on the client and passes it to the server. Both arguments are required and can specify the full path as well as the relative one.

 

For example, to send a file located at C:\Docs\Help.doc on the user's machine to the application server the following function call can be used:

 

fgl_upload("C:\\Docs\\Help.doc", "Help.doc")

 

'\\' must always be used instead of "\", otherwise, the string is not treated as a path, and the function call takes no effect.

To perform a file passing in the server-to-client direction, the fgl_download() function must be used.

 

 

If the specified file does not exist, file transfer is not performed, and the function returns 0/FALSE. On success, 1/TRUE is returned.

 

 

Related topics:

fgl_download()

fgl_file_dialog()

ui.Interface.frontCall()