Cloud Storage
Setup Google Drive
18min
overview & purpose get business and it benefits with google drive google drive reduces infrastructure cost and management and allows your end customers to easily upload large files directly in the drive it is highly recommended for businesses to integrate the best storage solution offered by google how to integrate read the below systematic guide to integrate google drive into your website 1 create new project 1 create new project visit google's developer console login with your google account after successful login, create a new project from the new project button enter name and location for your new project click on the create button after creating the project, you will be redirected to your project dashboard click on the go to apis overview 2 enable apis and create credentials 2 enable apis and create credentials the apis overview button will redirect you to your project dashboard click on the enable apis and services button enter "google drive" in the search box click on the google drive api and then, click on the enable 3 add credentials to your project 3 add credentials to your project to use google drive api in your store, you may need credentials click on create credentials to get started as soon as you click on the create credentials button, you will be redirected to the credentials page select the suitable options for the fields which api are you using select google drive api from the drop down what data will you be accessing select the user data radio button now, click on the next button and set up an oauth consent screen enter the details as explained below application name enter the name of your application user support email enter the support email address app logo upload the logo for your application developer contact information enter the email address of the developer now, click on the save and continue to create the oauth client id mention the details as below application type select the web application radio button name enter the name of your client authorized javascripts origins enter your store domain in authorized javascript origin authorized redirect uris enter the url in the following manner redirect uri for external service action http //www \<yourdomainname> com/admin/configuration external service action php redirect uri for google login http //www \<yourdomainname> com/user registration php redirect uri for google photos http //www \<yourdomainname> com/studio/services/images php note you can also configure google login and google photos on the same screen i e under the same project, all you have to do is enter the redirect uris for both apis and enable google photos api them from the apis dashboard there is no need to create a new project every time, you can configure all apis in one project only click on the create button the client id and client secret will be generated click on the download button to download the client id and client secret key once saving the keys, click on the done button this will take you to the credentials page from the oauth 2 0 client ids , click on the edit icon copy the client id and client secret key for further configuration into the admin panel 4 apply for verification 4 apply for verification to start with the verification, click on the oauth consent screen from the left hand side navigation pane from the above screen, click on the edit app the below screen for verification will appear check the application details and submit for verification in the next pop up enter your application details, and provide a contact email address next, click on the submit button google will verify your business and application details, thus allowing you to use google apps on your website without any hassle or verification error your application verification status will change to ‘being verified’ if your application isn’t verified then google displays a safety error to your customers, as shown below with this error, your application may work for a few days but it is advisable to get the application verified to avoid any further inconveniences 5 admin panel configuration 5 admin panel configuration in admin panel, go to admin >> store configuration >> external service settings >> cloud storage tab >> enable google drive >> action menu >> edit option enter the client id and client secret key and click on the generate link in the next screen, click on ‘connect me’ and give required permissions to google drive this will generate the access token next, enter the folder name where all the files uploaded by a customer while placing an order will be saved click on save and back note if you have entered the redirect uris for google login and photos as shown in step 6 then, to enable google login at your website and enable google photos in designer studio, you can enter these client id and client secret key in external service settings >> social sharing >> google 6 enable cloud file upload 6 enable cloud file upload to enable customers to upload files directly into your google drive storage you will have to allow cloud file upload for a product from the product section where to enable? go to admin > products > products > ‘action’ dropdown of a particular product > settings > 'upload' tab locate allow cloud file upload field, select the ' both ' radio button and click on the save button front store – the above setting will show click here to upload large files > button on the upload design page which will allow your customers to upload cloud file