To meet your needs, we constantly work to improve Querix products.
This means that Lycia documentation is developing as well.
In case you have found a certain dissonance between the provided information and the actual behavior of Lycia 3 and/or your applications, please, let us know about this via documentation@querix.com so that we can introduce the necessary changes to our documentation.
Thank you for your attention and cooperation.
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:
client_file is a string standing for the path, name and extension of the file to be downloaded;
server_file is a string standing for the file target location, name and extension after the downloading.
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_file_dialog()