Google Drive Explorer Add-on helps you to connect with Google Drive, you can explore your Google drive files, upload files to Google Drive and attach them with your package. You can control your Google drive directly from your site admin panel, use free 15 GB space and save your bandwidth.
Setting Up Google Drive Explorer Add-on:
- Visit Google API Console, Create New Project:

- After hit create button, the next page you will see:

- From the window above, click on "Go to API overview":
- At this step, you will see the following page, click on "ENABLE APIS AND SERVICES":

- From the following page, search for Google Drive API and Google Picker API, enable both:
- Search "Google Drive API"

- Enable API:

- Select and enable "Google Picker API" in that same way.
- Now, it is time to create credentials:

- Setup consent screen:

Select scopes:

While app is still in dev mode, you need to add your and other users gmail address to allow to use this app:

Save and continue. And it is done
- To setup API access credentials go to "Credentials" menu and click on create credentials button, select "OAuth client ID" ooption:

- Click on "OAuth client ID" button to create new client id:

Redirect URI should be like http://your-site.com/wp-admin/?page=wpdm-google-drive and set your site URL for "Authorized JavaScript origins", however, you can copy the URL from download manager Settings Page >> Cloud Storage >> Google Drive API Credential Settings Panel:

- Create API access key from "CREATE CREDENTAILS" button and select "API Key" option

- Now get Client ID, Client Secret & API Key from credential menu:

- Use that info in Downloads Manager Settings Page >> Cloud Storage >> Google Drive API Credential Settings Panel:

- And Save Settings!
- Now to Admin Menu >> Downloads >> Add New Package window and there you will see a new button "Google Drive" with "Attach File" metabox:

- Click on the button, you will see the following popup and click on "Login to Google Drive":

- After login and allow access, you will see the list of files from your Google drive.
- Finally attached files should be public to be downloadable:

52 Comments
Dear All,
Ignore the above query, I solved it myself.
No download starts, and the captcha not showing, if Google Captcha is activated for download.
Working successfully without a Google captcha.
Please help…
Thanks
Ram
I just found a weird bug, in that I suddenly cannot attach Google Drive files that have spaces on their file names. For instance, I cannot attach “Assignment Format.docx” but if I rename it to “AssignmentFormat.docx” I can attach it just fine. I used to be able to attach files with spaces in their file names just fine. Any solution to this, other than renaming my files to delete the spaces?
Is it possible to automactically set the uploaded file as public. without manually doing it ?
That is not possible with google drive for now.
HI, is there a way to restrict the folders seen within Google Drive? Say we have clients using this feature and we only want them to see folders we’ve given them access to and not everything?
You can use multiple account everytime you login and attach file.
https://share.getcloudapp.com/GGuk5Xvb
Hi installed everything, after clicking the blue Google drive button my consent is asked so I allow WPDM to access my drive and then nothing happens. After i click it agina it asks consent once more. What could be wrong?
No worries, it works, just took some time 🙂
Hello Shahjada
getting error 400.
Error: redirect_uri_mismatch
error has fixed , i am able to login with account after that it not shows anything just page blinks and goes off.
Dear Snehal Desai,
I am also getting the same error. How did you fix it? Please help.
getting error 400.
Error: redirect_uri_mismatch
Thanks in advance.
Please mail to support@wpdownloadmanager.com
hi
i have connected to my google drive. i can see the folders and files. is there away of sharing all the folders rather than selecting each individual file?
thanks chris
Any response on this? do i have to attach each file individually? ideally i want it to pull in the directory structure and files within them.
Hi,
that is not possible with Google Drive add-on, for folder sharing you may use Dropbox add-on ( https://www.wpdownloadmanager.com/download/dropbox-explorer/ ) with WPDM PRO.
Can I let other users upload files from the frontend to folders and let them download files other upload?
yes, possible, please check the doc: https://www.wpdownloadmanager.com/doc/short-codes/wpdm_frontend-front-end-uploader-ui/
hi, with this addon the users of my page can from the frontend upload files from their google drive?
Yes, they can.
Hello Shaon,
with Goole Drive I get only zero-byte zip files from multi-file packages.
I can get single files.
It works when files are on local web directory.
I already tried disable “resumable download” , “output buffering” and “cache created zip file”
WP 4.7.2
WPDM 4.6.0
WPDM GoogleDrive 1.2.0
Thank you
Hi Paolo,
Download Manager can make the compressed file when your files are stored on your server. In this case, files are stored on another server. So here your options are serving single file download or upload a zipped file in Google Drive and then attach it to the package.
Regards,
Shahriar
Ok, now it’s clear.
Thanks Shahriar!
Hi, I am not able to select a Perticular Folder from Drive to give acess to download. The Download option is available for File level only. But I need to sale the complete folder.
Sorry, That’s not possible with Google Drive Add-on.
Hi
I get error 400
Error: invalid_scope
Do i have to enable all the API in your screenshot to make it work.
I have read that i need to join a “Risky Apps” group to fix this.
Most guys are getting the 401 error due to not enabling the google picker API. in your description you must update it as a separate step. Video helped me out to figure this. Thanks a bunch.
It is in Step #3 already.
after update to 2.9.45, now for download pdf, google ask login to account
with google drive addon, link on file not working in browser Chrome. In Firefox normal work http://stroysmeta.com/download/123123123/
thanks. Updated – resolved
403 error
HI Shaon,
I am stuck with this error, when I hit the red google drive button in the new package page, i get a pop up that says “
401. That’s an error.
Error: invalid_client
The OAuth client was not found.
Do you have any suggestion for me?
Thanks.
It is because, you missed any of the steps mentioned above, however if you want us to set everything up there for you, please post here http://www.wpdownloadmanager.com/support/forum/download-manager-pro/
Hi Shaon, I’ve followed both video and step-by-step guide. Almost done, I can reach Google with API request when pressing red button google drive. Once accepted google connection a white transparent window cover the actual one, no way to see g-drive content. What do you think about that? Google issue? Thx in advance. Fab
Actually, not a google issue, please recheck the steps, certainly something was missed somewhere. However if you want us to check, please post in forum.
Thanks Shaon. I’ve rechecked unsuccesfully. What should I post? Snapshot of google config?
Hi Shaon,
I went through the instructions and have filled out client_id, client_secret, and the API key. However when I hit the red google drive button in the new package page, i get a pop up that says “Google – 401. That’s an error. Error: invalid_client.”
Do you have any suggestions as to how I can fix this error?
Thank you,
Corvin
Hi Shoan, I managed to get pat this error and WPDM connects to google. But now I get the error “The API developer key is invalid.” Would you know where I can fix that?
Thank you,
Corvin
Please check step #3 in the description above.
below is the error i keep getting……what should i do? i followed all the process carefully….
401. That’s an error.
Error: invalid_client
Application: NaijaLens
You can email the developer of this application at: naijalensforum@gmail.com
no registered origin
Request Details
That’s all we know.
It is because, you missed any of the steps mentioned above, however if you want us to set everything up there for you, please post here http://www.wpdownloadmanager.com/support/forum/download-manager-pro/ .
Can I provide downloads of files hosted in Google drive without transferring to my website server? This will save me drive space and bandwidth.
Yes, wpdm doesn’t copy files from google drive to local disk.
Are the download links universal and anybody can copy and share with others or that download url is generated for that user and get expired after a while? I am asking when files will be stored in Google drive.
What I want is to provide premium content via this. Is WPDM mainly for free files?
Through Google Drive, OneDrive, DropBox & Box.com add-on, you only can serve free file, For premium or access restricted files, you need to host your file in your site or remote ftp or amazon s3
Except Amazon S3 Add-on , for other cloud storage, wpdm can’t provide any protection.
If files are hosted on a remote ftp server, what level of protection does WP Download Manger provide?
Can people simply share the displayed download?
Can people share the download link from browser download page or from windows or os download manager if they are using one?
Does this process actually download the item from Google Drive to the local system? I’m wondering about updates….if someone updates the file on Google Drive, do we have to manually update the file in WPDM, or are our end users always going to download the latest file directly from Google Drive?
It download from good drive, wpdm simply does the direct to google drive download url. So if you update file in google drive, user always will be the updated files, no need to update in wpdm manually.
how can i add multiple google drive accounts??
Yes, you can use multiple google drive accounts from now.
how can i add multiple google drive accounts??