This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Google Drive WP Media


Google Drive on WordPress Media Publishing. Direct access to your Google Drive, allows you to manage your files remotely from your WordPress blog.
Upload and share your files directly from your WordPress blog to Google Drive.

New: Auto create thumbnails and Chunking Option available, just navigate to the Options page and customize your settings to help suit your needs.


  • Shortcode button, insert shortcode to embed Google Drive file directly from your post editor.
  • Option to auto insert your Google Drive files into your WordPress Media Library.
  • Attach your Google Drive files to your posts.
  • Upload your files from your WordPress Administration to Google Drive.
  • Create folder to storing your files.
  • Enable to attach any files to posts.
  • 700kb chunked for handle uploading large files.
  • Displaying current storage space.
  • Create WordPress image galleries.
  • Dummy internal urls.
  • Delete Google Drive file and folder
  • Media Library categories
  • Auto create Media Library category based on Google Drive folder name
  • Filtering files by its categories in Add Media upload tab

Shortcode for Single File Preview: [gdwpm id=”GOOGLE-DRIVE-FILE-ID”]


  • PHP 5.3.0
  • cURL


  • Google Drive API Key Setup
  • Folder Creation
  • Upload file
  • Files list
  • Media Upload Tab


  1. Extract google-drive-wp-media into your WordPress plugins directory (wp-content/plugins).
  2. Log in to WordPress Admin. Go to the Plugins page and click Activate for Google Drive WP Media
  3. On Admin backend, go to Media >> Google Drive WP Media
  4. Follow the instructions.


How to save/insert/move (existing) files via the standard Google Drive interface (web, or local folder on computer) and have them show up in the Google Drive WP Media interface in WordPress?
  1. login to
  2. select folder that has been created by this plugin, click “Add to My Drive”.
  3. Now the folder has been included into “My Drive” and you have an access to insert existing files into this folder.

to insert or move existing files

  1. click “My Drive”, and you will see your existing files/folders including folder from “Shared with Me” that you have been added before.
  2. select files (not folder) and then click “More” to show the dropdown menu, click “Move to”.
  3. select folder from “Shared with Me” that you have been added before, click “Move”

note: your files must be set to public to allows anyone to view or download your files.

Can you tell me why I can’t see the files or folders in my google drive that supposedly are uploading to my drive?

All uploaded files will listed in “Shared with Me” view (classic Google Drive) or “Incoming” area (new Google Drive).

How to displaying images in thumbnail size in the gallery?

Click the “Options” tab and enable the “Auto create Thumbnails” option.

I got a problem and the message is “An error occurred: Unable to parse the p12 file. Is this a .p12 file? Is the password correct? OpenSSL error:”. what I missed?

The error reported that was ‘Unable to parse the p12 file’, have you write the correct url path of p12 file.? can you access or download it via web browser? in addition if your domain setting use non-www or www only, then you have to add/remove www in url path. If the problem still exists, just upload your p12 file to your Google Drive and change the sharing setting set to public.

I got a problem and the message is “An error occurred: Error refreshing the OAuth2 token, message: ‘{ “error” : “invalid_grant” }’”. what I missed?

There’s something wrong (typo or something) w/ your Service Account Name setting. Please make sure, there’s no white space in the form fields. especially Service Account Name field or create New Client ID.

How to insert zip file into post as a Google Drive link, not linked to attachment page?

Click file which you want to attach, on ATTACHMENT DISPLAY SETTINGS, change Link to Media File. Click Insert into post.


August 24, 2019
I love this plugin alot and hope its creator would do/keep it update if there are changes to WordPress core. At the moment, it still works fine in version 5.2
January 11, 2018
this plugin is good but i have problems with thumbnails
Read all 46 reviews

Contributors & Developers

“Google Drive WP Media” is open source software. The following people have contributed to this plugin.




  • Option to delete virtual/dummy images directory/folder added
  • Oveerride default option for images rewrite added
  • Minor bug fixed
  • Tested up to 4.7.2


  • Broken url fixed
  • No physical directory for dummy url, htaccess removed
  • Dummy url’s pattern added
  • Bugs fixed


  • Error on dummy image url fixed
  • Custom dummy images directory added
  • Option to add filename prefix on dummy image url added


  • Error url deprecated Google Drive web hosting fixed


  • Bugs fixed
  • Image Galleries added


  • Bugs fixed


  • Duplicate variable name fixed


  • Undefined variable fixed
  • Image sizes error fixed
  • Restrict plugin access only for users who have the “activate_plugins” capability


  • Pagination for empty page fixed


  • Default values fixed


  • Option Auto Create Thumbnails added
  • Image Url changed
  • Google Drive upload type changed to Resumable Upload protocol
  • Split request into items and pages
  • Chunking settings added


  • Added repair tool for hidden folder
  • Added JQuery UI selectmenu for WordPress 4.1
  • Clear list fuction added
  • Nonce Updated


  • Detail Account Information updated
  • New: Auto generate shortcode for embedding video
  • Duplicated function removed
  • Sanitize description input text


  • New feature added: Show the thumbnail on mouseover
  • Fixed some codes


  • Minor update


  • Items/page initial request option added
  • Pagination on page request
  • Request/displaying Google Drive fileslist separated by items/page
  • New animation


  • Shortcode button added
  • Predefined shortcode option added
  • Bugs/typo fixed
  • jQuery UI updated to the latest version (v1.11.2)


  • Pagination option view added
  • Shared coloumn replaced with File size
  • Updated Shortcode with Specific width & height
  • Donation button added


  • File & Folder list pagination added


  • Alternative openssl sign function (as 2nd option) added


  • Added shortcode for single file preview


  • Enable preview in file list
  • Compatible up to Version 3.9


  • Feature to delete files/folder added
  • Media Library categories added


  • Url Rewrite bug fixed and optimized
  • Added CSS files


  • maxResults parameter added
  • WP Enqueue style added
  • Added new option to rewrite urls


  • Image size bug fixed


  • Bug fixed on default storage option
  • Option to ‘Add to Media Library’ on default storage option added


  • Plugin images location moved/changed to local plugin directory
  • Added icon tabs


  • Added Sanitizing for API Key form fields


  • jQuery UI Themes added
  • Added wpnonce
  • Custom Google Api config


  • Google Drive Account Information added
  • jQueryui ajax tabs added


  • Option to reload page after folder creation added
  • Typo fixed
  • jQuery noConflict() mode compatibility problems fixed


  • Minimum requirement error handling added
  • mkdir function removed


  • Added 700kb chunked for handle uploading large files activity.
  • finfo problem fixed.


  • Override default media upload dir added
  • GUI and CSS changed
  • JQuery upload added


  • Sanitize input text when creating folder
  • Error create folder missing argument fixed


  • Initial release, it’s a beta version.