Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Uploading Multiple Files When Using GBC (fgl_getfile()  (Read 1216 times)
Sean H.
Posts: 4


« on: October 10, 2024, 01:08:12 pm »

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.
Four Js
Posts: 1119


« Reply #1 on: October 10, 2024, 10:56:33 pm »

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.
Posts: 4


« Reply #2 on: October 11, 2024, 04:32:08 pm »

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
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines