Uploading Multiple Files When Using GBC (fgl_getfile()

Started by Sean H., October 10, 2024, 01:08:12 PM

Previous topic - Next topic

Sean H.

Hi,

I'm trying to find a way to enable a user to select multiple files at once to be uploaded to the server from the users PC as part of the migration to the GBC. Currently under the GDC it's not problem we just loop through the files which we've been able to determine exist (using frontcall) and pull each individually with fgl_getfile() and we do all this in the background.

Now via the GBC we don't have access to browse folders on the PC and using fgl_getfile() under the GBC only allows us to upload one file?

Thanks & Regards
Sean

Reuben B.

Are you aware of the openFiles front-call https://4js.com/online_documentation/fjs-fgl-manual-html/#fgl-topics/c_fgl_frontcall_standard_openfiles.html. (Note that is ...files plural

My inclination when transforming to use GBC is to precede FGL_GETFILE wth an explicit openFile(s) front-call as this gives you a little more control of what is rendered as opposed to FGL_GETFILE in isolation which will add its own UI if the file referenced has not been uploaded to the GAS temporary directory already.

Reuben
Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero

Sean H.

Thanks Reuben, No I wasn't aware of that openFiles frontcall; I will pick this up on Monday but that looks perfect for what I need.

Have a good weekend.
Regards
Sean