Templates Plugins Courses

Google Drive Plugin: Upload Error Need Help


#1

I have bought the Zeroqode Google Drive Plugin. All I need to use it for is simply to allow users to Upload Files to their own Google Drive cloud storage.

I am using the “Google Drive - Upload a File” action. However, I always get this error:

image

See https://cdn1.imggmi.com/uploads/2019/6/4/13e5e46da672520c4ece51416450e3be-full.png

I have added the App ID and App Secret as advised in the documentation of this plugin:

https://cdn1.imggmi.com/uploads/2019/6/4/13e5e46da672520c4ece51416450e3be-full.png

What must I do to allow this Upload action to work? Does the user first need to login to Google Drive? I have done this in the workflows:

https://cdn1.imggmi.com/uploads/2019/6/4/91b563f1031725ae59c8f674c91d0f46-full.png

However, I keep getting a verification error from Google:

https://cdn1.imggmi.com/uploads/2019/6/4/c6f9626a8462425882c4d31fd15b305e-full.png

I have completed the OAuth Consent Screen in the Google Console and submitted for verification. I am currently waiting on verification from Google.

Can you please advise on how I can fix that Authentication error and have I set up my workflow correctly in order to upload a file?


#2

Hello @leonidas.petrou4

Please check our demo: https://zeroqode-demo-14.bubbleapps.io/google_drive
And the setup of it: https://bubble.is/page?type=page&name=google_drive&id=zeroqode-demo-14&tab=tabs-1
As refer. Try replicate the actions from it.

Also you if see the Error, the message says what type of error you got. “Invalid Credentials” in image you shared
https://developers.google.com/drive/api/v3/handle-errors#401_invalid_credentials
meaning you should check your API Key credentials and authenticate the app in your google cloud console https://console.cloud.google.com/.

Regards,
Dumitru


#3

Thank you for your reply. So I think I have to wait for verification of OAuth2 from Google.

I do have another question. My users login to the app using the normal email sign up with their email address and password. Will they still be able to login to Google Drive to use the plugin and then still remain signed into the account they originally signed in with?


#4

Once they signed in with a Google Account they’ll remain logged within the app, if want you could log them out.
And yes, they’ll be able to use the Drive once they’ve logged into their accounts.
Hope this helps.


#5

Thanks Dimitru. Does a user need to log in with Google Drive in order to use the plugin? Or can the plugin activities be used without logging in a user with Google Drive?


#6

Hi Leonidas, yes the user needs to log in with their Google Drive account in order for you to access their Google Drive data


#7

Thank you. I have got it working and it works great. I would like to know is there a way to name the file being uploaded? Because the ‘upload a file’ activity only has an input for the file link but not the file name. I’ve seen that you can create a new folder and name the folder with the ‘create a folder’ activity, but how would I name the file itself?

I ask because any file I upload gets saved as “untitled”.


#8

it seems like a known bug from google drive, we tried to solve this before but to no avail


#9

Thanks for letting me know. That’s disappointing. Is there perhaps a way that I can save the uploaded file and define a path so it saves in a specific folder? That way, I can create a new folder with a name for each file I upload.

At least that would create some kind of naming convention. I look forward to your reply.


#10

We’ll check it out but it won’t be quick unfortunately


#11

Hello @leonidas.petrou4.

Thanks for patience, we checked the plugin and steps should be as follow.

  1. Upload File -> (Get File Id result from step 1) -> Rename File.
    It could’ve been done with one, however it is not possible in Bubble so you’ll need to create this flow.
    Please try it out.

Regards,
Dumitru.


#12

Hi Dumitru,

Thanks for the update of the plugin. I tried this but unfortunately it did not work:

It still saves without the title:

I have used the “Google Drive - Add File to Folder” action after the upload action and it works. However, the “Google Drive - Rename File” action does not work as mentioned above.