Support Centre Documentation

Setup Goolge Drive


Google Drive is a free service that allows you to handle file uploads to Google. You can make files public or only accessible to approved google users. This tutorial will show you how to set up Google Drive.

The first thing you're going to need is a Google Account. Once signed up, you need to create Google Drive API keys that are added to your software. This allows authorisation.

Google Drive API Keys

Getting Google Drive API keys is simple. Follow the steps below.

Head to the Google Cloud Console and select Credentials or visit here: https://console.cloud.google.com/apis/credentials

Here you need to create a Project for your keys. Give it a name that allows you to remember what your keys are for.

You will then need to configure your OAuth Consent Screen. You want to select External for User Type (since we are allowing other users to view our Google Drive).

On the next page, give your App name, you can also link to other pages such as privacy policy etc. For now you can leave them blank whilst setting up.

On Scopes, you can ignore this. For Test Users, add your Google Account. Now that is setup, you can generate your keys. If you make a mistake, you can always go back and edit the Consent Screen later.

Enable Google Drive API

Before we create our keys, make sure we enable the Google Drive API. From the Credentials page, click on Library and look for Google Drive API.

Click Enable.

Oauth Keys

Go back to the Credentials screen and click on Create Credentails from the top menu. From the options, select Create OAuth Client ID.

Your application type is web application.

Make sure for authorized redirect URLs you input your site's URL along with the correct url to auth the drive.

http://www.yoursite.com/support/admin/auth_drive

Click create and you should then be given two keys: Your Client ID and Your Client Secret. These then need to be put in the Admin Panel under Google Drive Client Id and Google Drive Client Secret.

Authorise Google Drive

Once these keys have been added, you then need to select Authorize Google Drive button in the Admin Panel, near where you put the settings. Once authorised, users will then be able to upload files to your Google Drive.

There are two types of permissions:

Viewable to Authorized Google Accounts - This makes any file uploaded only viewable by Google Accounts you have approved in your Google Drive.

Viewable to anyone with a link to file - This allows anyone who has access to the unique google drive file URL to view the file.

Google Drive generates unique URLs for each uploaded file.