Can I Upload Directly to Google Drive in Wordpress

Connecting Your Media Library to Google Drive With a Plugin

Later the plugin'south installation and activation, go to Settings >> External Media to connect the plugin with your Google Drive and set it according to your preferences.

One time there, you will see various tabs that allow you to connect to unlike storage services, such every bit Dropbox, OneBox, and of form, Google Drive. Y'all should head to the Google Drive tab and tick the "Enable this plugin" option.

Google Drive Enable

Right below, you will also notice fields that require you lot to enter Client and Application ID.

Yous will be able to acquire both IDs if you get to the Google Developers Console page and create your own project. So, for your next pace, you should head in that location and start creating your projection by clicking the Proceed push button. By doing so, you will permit Google to enable the Google Picker API.

Create a Project

After that, you will demand to click on Go to credentials.

Go to Credentials

Since you will be needing a Client ID, but click on the link named Client ID.

Client ID

Next, you volition be required to configure the consent screen. Click on the Configure consent screen button.

Configure Consent Screen

You will exist asked to cull how yous want to configure and register your app. The Internal user type is merely available if you are a Thou Suite user, so if you're non, choice the External option and striking the Create button.

You will be led to the OAuth consent screen, where you should give a proper name to your app. Hitting the Save push button once you lot are done naming your app.

App Name

If you are non automatically redirected to the Credentials screen, make sure to click the Credentials tab, so go to +Create Credentials >> OAuth Customer ID.

Create Credentials

Cull Web awarding for your Application type. You lot should also assign a name to your customer and insert your website's URL, as well as the oAuth Callback URL . As for the latter, you lot will be able to detect this URL in the External Media Plugin's Google Drive settings, at the very bottom of the screen (nether the proper noun Redirect URL).

Hit the Create button when yous're washed.

Credentials Info

A popup will announced with your customer ID information.

Client ID

You lot should re-create and paste this ID into the Google Drive settings of your plugin, in the Client ID field. Also, in the Application ID field, you should copy the get-go 12 numbers (before the dash) from your Client ID:

Client ID and App ID

After you're done with copying Customer and Application IDs, configure the rest of the options according to your preferences, and hit the Save Changes push. This action will connect your WordPress site to your Google Drive.

At present, y'all should go ahead and create a new folio or mail. Hitting the Add Media button if you lot are using the Classic editor, or choose the Gallery/Paradigm block >> Media Library if you're using Gutenberg.

Gutenberg Media Library

In the Upload Files tab, you will now see the choice to import your files from Google Drive.

Import From Google Drive

After you click on it, you will be redirected to a window assuasive you lot to choose your Google account (if you accept more than than one). Once you click the preferred account, a popup will announced, asking you to allow admission to your website to view and manage Google Drive files and folders.

Google Sign In Allow

Confirm Your Choices

Finally, yous will be able to await through your files and folders and import them by clicking on the files in question and hitting Select.

Select a File

Once yous import all the files you want, yous will be able to add those files from your media library anywhere on your pages and/or posts.

Finally, we should mention that all the files you import into your WordPress media library from Google Drive will remain there, even if you end up deactivating the plugin in the future.

suarezwashate.blogspot.com

Source: https://qodeinteractive.com/magazine/how-to-connect-wordpress-media-library-to-google-drive/

0 Response to "Can I Upload Directly to Google Drive in Wordpress"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel