How to Upload Files from a WordPress Form to Google Drive

Do you need to ship recordsdata from a WordPress contact type to Google Drive?

Normally, your type plugins will add any recordsdata straight to your WordPress website. However, it’s your decision to robotically add them to Google Drive as nicely for safekeeping and simpler sharing.

In this text, we’ll present you ways to simply add recordsdata from a WordPress type to Google Drive.

Uploading files from a WordPress form to Google Drive

Why Upload Files From Your WordPress Form to Google Drive?

Normally, you need to use your WordPress type builder plugin to add a file add subject and preserve the uploaded recordsdata in your web site.

But what in the event you needed to share the uploaded recordsdata with somebody who doesn’t have entry to the WordPress admin space?

This is the place Google Drive is available in. Google Drive permits you to retailer recordsdata on the cloud and simply share them with anybody. It additionally permits you to simply entry recordsdata from any system with out logging into your WordPress website.

For occasion, in the event you create a job software type and ask for resumes, then you may robotically add these recordsdata straight to Google Drive and share it with others in your staff.

Another state of affairs is once you run a contest the place customers add pictures or submit articles to take part.

Sending these submissions straight to Google Drive saves disk area in your web site. At the identical time, it retains these recordsdata protected in a distant cloud location.

That being stated, let’s take a have a look at how to simply ship WordPress type uploads to Google Drive.

Creating and Preparing Your WordPress Form in WPForms

For this tutorial, we will probably be utilizing WPForms. It’s the most well-liked contact type plugin for WordPress with over 3 million lively installs. It comes with a easy drag and drop interface that permits you to simply create any type of type.

Then, we’re going to use a instrument known as Zapier to join WPForms with Google Drive.

Zapier acts as a bridge to ship knowledge between two totally different apps, with out you needing to use any code. It seamlessly integrates with over 2000+ apps.

Note: You want the Pro model or larger to entry the Zapier addon for WPForms.

Creating a File Upload Form in WPForms

First, you want to set up and activate the WPForms plugin in your web site. For extra particulars, see our step-by-step information on how to set up a WordPress plugin.

Next, you want a type that your web site guests can use to ship you recordsdata. If you don’t have already got a type arrange, try our step-by-step information on creating a file add type in WordPress.

Important: This technique will solely work with a single file. It won’t work with a number of recordsdata from one type submission.

Once you’ve gotten arrange your type, you want to add it to your web site. To do that, merely edit the publish or web page the place you need the shape.

On the publish edit display screen, click on on the + button to add a new block. After that, seek for the WPForms block and add it to your content material space.

Adding a WPForms block to a post or page

Then, publish your web page or publish to put your type reside. Once you’ve completed so, go forward and create a take a look at entry. This will probably be used to arrange and take a look at the connection between WPForms and Google Drive.

Here’s our take a look at entry:

The completed upload form, including a photo (.jpg)

Preparing to Connect WPForms with Zapier

We are going to use Zapier as a bridge between WPForms and Google Drive. To do that, you want to set up and activate the WPForms Zapier addon.

In your WordPress admin, go to the WPForms » Addons web page and discover the Zapier addon. Go forward and click on the ‘Install Addon’ hyperlink to set up and activate it:

Installing the Zapier addon for WPForms

Next, you want to go to the WPForms » Settings » Integrations web page. Simply click on on the Zapier brand to get your Zapier API key. You will want this so as to join Zapier with WPForms.

Getting the Zapier API key from WPForms

Copy the API key someplace protected or preserve this tab open. You will want the API key in a later step.

Creating a Zap to Send Files from Your Website Form to Google Drive

Once you’ve gotten your type prepared, go to the Zapier web site. You want to create a free account or log in to your current account.

In your Zapier dashboard, merely click on the ‘Make a Zap’ button to get began. This will open the configuration wizard.

Note: Zapier makes use of the phrase ‘zap’ for a course of with a set off and an motion. Our set off will probably be a customer filling within the type, and our motion will probably be sending the file(s) hooked up to the shape to Google Drive.

At the highest of the display screen, you want to select a identify in your zap. Once you’ve completed that, it’s time to arrange the set off.

First, you want to choose WPForms within the ‘Choose App & Event’ field. Just kind ‘WPForms’ into the search bar to discover it:

Choosing the WPForms app in Zapier

You will now be prompted to choose a set off occasion. This will default to ‘New Form Entry’ so all you want to do right here is click on the ‘Continue’ button.

Choosing a trigger event in Zapier

Now, Zapier will ask you to signal into WPForms. Go forward and click on the ‘Sign in to WPForms’ button.

Click the button to sign into WPForms

You ought to then see a popup window. Here, you want to enter the API key that you simply discovered earlier.

You additionally want to add your web site’s URL (area identify).

Enter your API key from WPForms and the URL of your website

After you’ve entered these particulars, simply click on on the ‘Yes, Continue’ button to transfer on.

Next, Zapier will ask you to choose your file add type from a dropdown listing. Go forward and click on on the identify of your type:

Select your file upload form from the dropdown in Zapier

Once you’ve chosen the right type, you want to click on the ‘Test trigger’ button to ensure that Zapier has related to your type accurately.

Testing your trigger in Zapier

After clicking that button, it is best to see a message that Zapier has discovered a take a look at entry. You will see the information on the display screen:

Viewing the data for the test WPForms entry

Click the ‘Continue’ button to transfer on to the Action a part of the Zap. Here, you want to select your second app, Google Drive.

Choosing the Google Drive app as the action for the zap

Next, you will notice the dropdown for selecting an motion occasion. Here, you want to choose the ‘Upload File’ choice after which click on to proceed.

Choosing 'Upload File' as the action for the zap

Zapier will now immediate you to signal into your Google Drive account:

Signing into Google Drive when prompted by Zapier

Once you’ve completed so, click on the Continue button to transfer on:

Zapier and Google Drive are now connected

Now, it’s time to arrange the place you need the recordsdata to go in your Google Drive. Simply click on on the Drive dropdown to choose whether or not you need to use your private drive or a shared drive.

You may see : How to Display Your Facebook Timeline in WordPress

Then, click on on the Folder dropdown to choose the folder you need to use.

Select the Google Drive you want to use plus the folder to put the uploaded files in

Next, you want to inform Zapier which file(s) to add. Under the File dropdown, choose the add subject in your type:

Choose the correct field (the file upload field) from your form based on the test data

After that, you may depart the opposite settings clean and click on the proceed button to transfer on.

Zapier will now immediate you to take a look at your Zap by sending an add file to Google Drive. Simply click on the Test and Continue button to achieve this:

Sending the test file to Google Drive using Zapier

This will ship Google Drive the recordsdata you uploaded in your take a look at type entry. Go forward and test your Google Drive folder for the recordsdata:

Viewing the uploaded file in Google Drive

Once you’re assured that your zap is working as meant, merely click on the ‘Turn on Zap’ button to make it reside:

Turn on your zap once you're ready

Now, all recordsdata despatched by means of your file add type will robotically be uploaded to your chosen Google Drive folder.

WPForms will all the time preserve a backup of all recordsdata in your WordPress internet hosting account in case the Zapier API experiences any outages.

Please take into account that in the event you get a lot of type submissions with massive recordsdata, then it will take up elevated cupboard space in your Google Drive. In our enterprise, we use G Suite Business plan to get Unlimited cupboard space.

We hope this text helped you learn the way to add recordsdata from a WordPress type to Google Drive. You may additionally like our article on how to use consumer generated content material to develop what you are promoting, and our assortment of the will need to have WordPress plugins for all websites.

1 thought on “How to Upload Files from a WordPress Form to Google Drive”

  1. Pingback: How to Add Dark Mode to Your WordPress Website (Easy)

Leave a Comment

Your email address will not be published. Required fields are marked *