Discussion on Use-your-Drive | Google Drive plugin for WordPress


_DeLeeuw_ supports this item


691 comments found.

Hello. I have a question, it is possible to be added in the wordpress backend ? Regards,

There is a File Browser present in the Back-End which shows the full Drive. You can select which User Roles should have access to this File Browser.

If you want to add a custom File Browser, you can always use the WordPress function do_shortcode(), or call the plugins shortcode directly.

I will gladly help you to implement the plugin in the Back-End for a small fee, so feel free to contact me via a Support Ticket if you are interested!

Knowledge Base · Create Support Ticket

Hello. I can’t seem to get the “folder upload” feature for Chrome to work on Mac or PC. Anybody have any tips?

Hi there! Could you perhaps let me know what kind of issue you have with the folder upload? I just tested it on the Demo website, but everything seems to working fine there.

Thanks for the reply. I get an error if I try to upload a file or folder (folder on desktop with sample flowers.jpg)

That sound like a server issue. Could you perhaps create a support ticket so I can take a closer look? As it is almost time to call it a day here, I will get back to you tomorrow.

Knowledge Base · Create Support Ticket


skiseiju Purchased

hi every time update will shows “Cache file (/home/skiseiju/web/quenchwedding/wp-content/plugins/use-your-drive/cache/1.access_token) is not writable” and plugin page is not usable and i fount the 1.access_token is been deleted

Thanks for notifying me about this issue! I will directly look into it and will try to release a fix for this today.


It seems that during a plugin update, WordPress completely deletes the current plugin folder before installing the new version instead of just overwriting the old files. That is why you indeed will lose the access_token file and all the other cache files as well.

As this issue is quite critical, I will release version 1.7.2 in a few moments which will save those files outside the plugin folder.

I am really sorry for the inconvenience, and once again, thanks for reporting this bug!


skiseiju Purchased

thanks for update :)


asimi Purchased

will my existing images on wordpress site can be uploaded to drive – using this plugin – basically i want all my images to be loaded from google drive

Thanks for your interest in Use-your-Drive!

The plugin is created to display files/pictures/media on your Google Drive directly in a WordPress page/post via the File Browser/Gallery/Media player of the plugin. You can see the different possibilities on the Demo site.

As far as I know there isn’t a plugin around that can include single image directly from Google Drive without any performance loss, as it simply isn’t possible in the way the Google API is designed.


gimefree Purchased

Is it possible to block hotlink? As now, other users can share direct download link to my file without linking to my download page.


I think that you can prevent hotlinking by modifying your .htaccess file on your server. Could you perhaps share one of the download links with me so I can try to help you with that? Feel free to create a support ticket when you don’t want to share that information in this comment section.

Knowledge Base · Create Support Ticket


gimefree Purchased

What I mean is the protect link like this:


Other users may place this link on their site to download file without visit to our download page.

Thanks for the link! If you allow non-logged in visitors to download files via the plugin, you can indeed share this link as long as the shortcide is present on your site.

If you want to block hotlinking to those urls, you will have to rely on the HTTP_REFERER header which is send by the browser. For instance, the following .htaccess script can stop hotlinking to the link you posted:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?florisdeleeuw.nl [NC]
RewriteCond %{QUERY_STRING} ^(action=useyourdrive-download(.*)) 
RewriteRule \.(php)$ - [F]

However, please understand that there are some situations that the HTTP_REFERER isn’t set by the browser. It will/may be empty when the enduser

  • entered the site URL in browser address bar itself.
  • visited the site by a browser-maintained bookmark.
  • visited the site as first page in the window/tab.
  • switched from a https URL to a http URL.
  • switched from a https URL to a different https URL.
  • has security software installed (antivirus/firewall/etc) which
  • strips the referrer from all requests.
  • is behind a proxy which strips the referrer from all requests.
  • visited the site programmatically (like, curl) without setting the referrer header (searchbots!).

If you want to block the request completely, you probably have to talk to your web hoster to see what they can do from the server side point of view.

I hope this information points you in the right direction!

Question: When authorizing the plugin, here: http://imgur.com/veI41MU

From a security perspective, does that expose access to my Google Drive to florisdeleewu.nl ? Why is authorize redirect uri is on an external site and not initiated from my website?

Fair question! To make the installation of Use-your-Drive as easy as possible, the plugin uses a pre-configured Google App. This Google App can only point to one domain which is in this case the company domain. This behavior is exactly the same if you authorize Google to use your data in an App or another authorization Flow, so nothing to worry about.

However, if you really insist in setting up your own Google App, just create a support ticket and I will send you the instructions how to do so.

Thanks for the prompt response! Actually i am a developer, so i don’t mind going through instructions :) i will do that now thanks

You are welcome! I just sent you the instructions. If you need additional help, just give a shout!

Hi There i’m having an issue with your searching. It only searches off the first part of the file name. I can’t search from the middle or by the end part as I can in google drive. Can you assist or advise me on this please

Sure, I will gladly try to help you! The plugin should return exactly what the Google Drive API is providing which in theory should be the same as what you see as result in the Google Drive web interface.

If that isn’t the case, could you perhaps create a support ticket and include some instructions on how I can reproduce it on your website. I will happily investigate it for you!

Knowledge Base · Create Support Ticket


glaucio Purchased

Where can I find the new version too upload? Thanks

Please check the following FAQ article about that: How do I update the plugin

Stuck while updating the version 1.7.2. Can you confirm if this version is compatible on the latest version of wp?

i tried three times already but i got the same result. I am still stuck while updating from 1.7.1 to 1.7.2. Please take a look at my ss. it says unknown compatibility with wp 4.8.1 https://prnt.sc/gc3uaq

The plugin has been tested up to 4.8.1, but this wasn’t yet added to the Readme.txt of the plugin. That should be fixed now. It is perfectly safe to update the plugin to version 1.7.2 if you are already running 1.7.1 as the changes are small. NOTE: please be aware that you have to re-authorize the plugin after this update due to a change in the Authorization process.

If you still are encountering issues with the plugin, please create a support ticket and I will gladly help you out.

Knowledge Base · Create Support Ticket

It’s working now. Thanks man!

Hello, I recently update the plugin and it doesn´t work:

Use-your-Drive has encountered an error

Error Details: Conflict with other Google Library: /var/www/vhosts/protecciontecnica.org/httpdocs/WP/wp-content/themes/woffice/inc/libs/google-sdk/Google_Client.php

I can´t do anything in general settings.


There is indeed a conflict with the WOffice theme which is loading a stripped-down version of the complete Google Library SDK. As the WOffice theme is loading the library before Use-your-Drive, Use-your-Drive simply isn’t able to execute its functions.

This is a complicated issue as both plugins are depending on their own Google Library. That is why Use-your-Drive always uses the latest library. In most cases the only solution would be to disable one of the two… but I guess that isn’t the solution you are looking for.

If you are not using the Google extension(?) in the WOffice theme, you can disable the code that is loading the Google SDK. Unfortunately, I am not that familiar with WOffice, so I can’t tell you from here how to do so. If you want me to take a look at your setup up, please feel free to create a support ticket and I will look into it as soon as possible.

Knowledge Base · Create Support Ticket

hi, i like your plugin!!DeLeeuw , can you add google photos, cause it is unlimited storage space for videos .that would be good. thank you .

Thanks for your feedback, I really appreciate that! Google Photos would indeed be a great addition to the plugin, so I will add that to the Feature Request List. I hope to add this soon!