How to Create a WordPress Google Drive Upload Form

How to Create a WordPress Google Drive Upload Form

Do you want to create a WordPress Google Drive upload form?

With WordPress, it’s possible to back up file uploads from your forms to Google Drive.

In this post, we’ll show you how to add a file upload feature to your contact forms, and also have those files automatically backed up in your Google Drive.

Create Your Upload Form Now

Why Create a Google Drive Upload Form?

A Google Drive upload form gives you the reliability of having your uploads from forms safely stored at all times. Normally, form uploads are stored on your website’s servers. But your website can quickly run out of space if all of your uploads are stored within it.

When you connect Google Drive with your contact form, it will also send a copy of those uploaded files to your Google Drive. That way, you will have copies of those uploaded files on both your server and Google Drive

WPForms is the best WordPress Form Builder plugin. Get it for free!

Besides, it’s always wise to have a copy of your files in case of scenarios like data corruption, or worse, a hacker attack.

Note: This guide will only show you how to save your upload form file attachments into a Google Drive folder. If you also want to save your contact form entries such as the name, email, and message, check out our guide on learning how to connect a contact form with Google Sheets.

Now that we know why creating a Google Drive upload form is so important, let’s dive into the steps for how you can connect your file uploads with Google Drive.

How to Create a WordPress Google Drive Upload Form

Here’s exactly how to create a WordPress upload form that sends data to Google Drive automatically.

  1. Install WPForms
  2. Create the File Upload Form
  3. Publish the Upload Form on WordPress
  4. Connect WPForms with Zapier
  5. Connect Zapier to Google

Let’s dive into creating a WordPress Google Drive integration.

1. Install WordPress Google Drive Upload Plugin

WPForms is the best WordPress plugin to upload files to Google Drive. To start uploading files from WordPress to Google Drive, your first need to install the WPForms plugin on your WordPress site if you don’t already have it.

If you don’t know how, see our documentation on installing the WPForms plugin for help.

WPforms-home

After it’s installed and activated on your site, it’s time to create the file upload form in the next step.

2. Create the File Upload Form

Open your WordPress admin area and click on WPForms » Add New.

add new form

This will open the WPForms form builder. Here, start by giving your form a suitable name.

File upload form name

Next, we’ll take advantage of WPForms’ extensive library of form templates. To make our job easier, we’ll use the File Upload Form template.

Scroll down and type in File Upload Form in the search field under the Select a Template section. Then, select the template by clicking on Use Template.

Select file upload form template

When the template opens, you’ll find some common fields within including a file upload field. You can customize this template any way you like or leave it as it is.

File upload form builder

For a more detailed guide on file upload forms, see our tutorial on how to create a file upload form in WordPress.

When you’re ready, make sure to Save the form.

3. Embed and Publish the Upload Form

Now, we’re going to add the upload form to a new page on our WordPress site. Click on the Embed button on the top-right of the form builder.

Embed form

Now, select Create New Page in the dialog box.

Embed in new page

Give your new page a name.

Lets go to new page

Now, you’ll be taken to your new page with the upload form you just created already embedded within. Click on Publish to finish adding this page to your site.

Publish upload form

When your form is published, fill out a test entry yourself. This will allow Zapier to test its integration with WPForms in the next step.

4. Connect WPForms With Zapier

In order to connect Google Drive with WPForms, you’ll need a Zapier account (you can get it for free). Once, you’ve set up your account on Zapier, navigate to your dashboard and click on Create Zap.

Create zap

Now, search for WPForms in the search field and click on WPForms when it appears on your screen.

Zap trigger

Next, click on the Trigger Event dropdown field and select New Form Entry.

Trigger event

To proceed, you’ll now need to integrate your WPForms plugin with Zapier. Click on Sign in to WPForms.

Sign into WPForms for Zapier

This will open a new window asking for your WPForms API key.

To get this key, you first need to make sure you have the Zapier addon installed for WPForms. For instructions, see this tutorial on adding WPForms addons.

When the Zapier addon is installed and activated, go to WPForms » Settings » Integrations. Now, click on the Zapier icon to access your API key.

Zapier integration

Copy the key and switch to Zapier’s WPForms connection window. Then, paste the key under the API Key field. Also, enter your website URL (e.g. https://wpforms.com). When you’re done, click on Yes, Continue.

Connect to WPForms in Zapier

You should now be back to Zapier’s zap creation window. Click on Continue.

Zapier connected with WPForms

Now, we’re going to set up a trigger. Click on the dropdown field to see all the forms that you’ve created with WPForms so far. Make sure to select the right one from the list.

For this example, we want to select the File Upload Form. Press Continue after you’ve made your selection.

Zapier select file upload form

Now, we’re going to test your zap. Click on Test trigger.

Test upload form trigger

Zapier should find the test entry that you filled out in the previous step, which will look something like this.

Test entry zapier

Click on Continue to finish this step. Next, we’re going to connect Zapier to your Google Drive.

5. Connect Google Drive with Zapier

For the WordPress Google Drive integration to work, we need to set up Google Drive as the “App Event” triggered by WPForms.

After you’ve pressed the Continue button to finish the previous step, Zapier will ask you to choose an app to connect your WPForms triggers with. Search for Google Drive in the search field and click on the icon.

Select Google Drive in Zapier

Then, click on the dropdown menu and select Upload File as the action event and press Continue.

Upload file action event

Zapier will then ask you to sign in to Google. Press the Sign in to Google button and sign in with your usual Google account and allow access to Zapier. Then, click Continue once again.

Connect gmail account

Now, we’ll set up the action we want Google Drive to perform when a new form entry is created on our site. Select your Google Drive to use, the folder where the uploads should be saved, and the files that should be uploaded.

Set up action on Google Zapier

You can leave the rest of the options blank. But, you can customize them if you’d like to automatically convert your uploaded files to Google Drive file formats or change the names.

Once you’re done, click Continue.

Zapier is now ready to test your Google Drive action event. Click on Test & Continue to proceed.

Test Google Drive integration

You should instantly see a confirmation message stating that your upload file was sent to Google Drive.

Note: WordPress might also restrict some types of file uploads. You can fix that by following this guide on allowing additional file types.

Google-Zapier test successful

Log into your Google Drive and confirm if the upload you provided during form entry was correctly sent to your selected folder.

Upload confirmation Google-Zapier integrationAs you can see, the test was a success and we received the upload file in our Drive folder.

Now. head back to your Zapier window and click on Turn on Zap to complete your WPForms Google Drive integration.

Turn on Zap

That’s it! Now you can send a copy of your WordPress form upload files to your Google Drive whenever a user fills in an entry.

Next, Automate WordPress Tasks

If you think the idea of doing all this stuff with your forms automatically is cool, you’ll definitely want to check out this post on the best WordPress automation tools.

Ready to build your upload form? Get started today with the easiest WordPress form builder plugin. WPForms Pro includes lots of free templates and offers a 14-day money-back guarantee.

Create Your Upload Form Now

If this article helped you out, please follow us on Facebook and Twitter for more free WordPress tutorials and guides.

Using WordPress and want to get WPForms for free?

Enter the URL to your WordPress website to install.

Comments

  1. Is this entire process end-to-end encrypted? Where are the files stored temporarily before they are transferred to Google Drive? It seems to store them on a server called i0.wp.com. What is this server? Is it secure? Who owns/controls it?

    1. Hey Ryan.

      In order to make sure we answer your question as thoroughly as possible, we will be responding via email support in your current active ticket on the same.

      I hope this helps!

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.