Where is my files location if I use Google Drive File Upload?

Confluence User - 02 May, 2024

Hello,

I am using the element (Google Drive File Upload) in one form. I have configured the API and everything seems to work fine. I can upload the files and retrieve them as well. My problem is, I cannot see them when I access my Google Drive. I am not sure where they get stored. When I open a file from the posted form, it takes me to an address like the one below:

(https://myserver.on.joget.cloud/jw/web/json/app/crm/1/plugin/org.joget.google.DriveFileUpload/service?_fd=crm_proposal_form&_pk=b83c0616-9d3e-4601-8ad6-d530f4f74524&_fn=filename.jpg)

I have installed the file management plugin to check if these files may be stored on Joget instead, but they do not appear to be on the Joget server. I am using the current version of Joget Cloud.

Appreciate your help on a way to reach those files' location.

forms;fileupload;googledrivefileupload

3


02 May, 2024
confluenceUser
confluenceUser

Hey there,

Have you recheck your configuration for the Google Drive File Upload in Form Builder :  Google Drive Storage Integration#:~:text=Figure%201%3A%20Google%20Drive%20File%20Upload%20in%20Form%20Builder

Ensure that you define the correct Google Apps account for file storage. Its best if you use the same account for your API configuration. 

Cheers!

04 May, 2024
confluenceUser
confluenceUser

I put here the id given by google cloud when I configured the API (xxxxxx@bhjg-crm.iam.gserviceaccount.com)

If I put the normal email of my account it gives an error (unknown error). but with this account, it works fine but does not put the files in my account's drive.

13 May, 2024
confluenceUser
1
confluenceUser

I found the problem. What I was missing is the user delegation. I have created the service and enabled the Google Drive, but did not add any user delegation. So the service was adding the files to the service account and not the user account (which is in this case do not exist). After adding the delegation I could add the user account in the form element property and hence the files were uploaded to the designated folder.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print