How to Send WordPress Uploads to Google Drive (Easily)

Are you looking for a way to connect a contact form with uploads to Google Drive? If you’re managing a small business online, there are situations where users might want to send you files through your website’s contact form. And you might want to automatically save them to Google Drive.

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

Why Create a Google Drive Upload Form?

Before we get to the fun part of this guide, let’s figure out why you should use a file upload form on your website.

Having a contact form with a file upload feature will make that process much easier for both you and your users. But, why connect it to Google Drive?

Normally, when a user uploads a file from a contact form it will get uploaded to your website’s server. So, for some reason, if your server files get corrupted or inaccessible, all those uploaded files will also disappear along with them. Not to mention that when lots of users start uploading files to your server, it will also take up your hosting space as well.

However, 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 on Google Drive. It will make things much easier for you to manage those files and you can even delete those files on your server to free up space.

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

How to Send WordPress Uploads to Google Drive

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

Create The File Upload Form

Without further ado, let’s get started and create this awesome Google Drive upload form on your WordPress blog.

Creating the upload form is easy. If you prefer instructions in video format, watch the video above. Or, reading this guide for a more detailed step-by-step tutorial.

How To Integrate Google Drive Uploads

Now that we’ve created a gorgeous contact form with an upload feature, let’s see how we can connect Google Drive with this upload form so that a copy of the files uploaded via the form gets automatically sent to your cloud storage.

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.

Step 1: Install the Zapier Addon

In order to connect Google Drive with WPForms, you’ll need the Zapier addon and a Zapier account.

Go to WPForms » Addons. Scroll all the way down to find the Zapier addon. Then click Install and activate the addon.

install wpforms addon to get wordpress upload to google drive

Step 2: Integrate Zapier With WPForms

Go to WPForms » Settings » Integrations and copy your WPForms Zapier API key. You will need this to connect your Zapier account with WPForms.

wordpress lets you use zapier to upload to google drive

Step 3: Log in to your Zapier account.

Now, log in to your Zapier account. If you don’t have a Zapier account you can register an account for free. And click on Make A Zap button.

pick zapier app

Step 4: Find the WPForms App

Search for WPForms and select it as the trigger app.

choose a zapier trigger

Step 5: Select the New Form Entry

Choose New Form Entry as the trigger and Save.

select wpforms trigger to send wordpress uploads to google drive

Step 6: Connect the Zapier and WPForms Account Zaps

Now, click on Connect An Account as this will open a new window. Enter your website address and the WPForms Zapier API key here. Then click Save and Continue when prompted.

select wpforms account

Step 7: Select Your Form

In the next step, select your upload form from the list of forms you’ve created. And click Continue.

set up wpforms entry in zapier to send form uploads to google drive

Step 8: Test Your Zap

Now, Zapier will ask to test your form. Before doing that, you need to enter a test entry onto your form. Go to your WordPress Dashboard » WPForms » All Forms and click Preview to show your form and submit a test entry.

Make sure to add a sample file attachment in this test message.

preview upload contact form

Step 9: Fetch and Continue

After completing the test, go back to your Zapier account and click Fetch and Continue button to test the trigger you’ve just created. After the successful test, click Continue.

test wpforms upload to google drive zap

Now you can create an action for the Zapier trigger you’ve just created. Here’s how it’s done.

Step 1: Find the Google Drive App

In the list of Action Apps, search and find Google Drive.

choose an action zap google drive

Step 2: Select the Action

Choose Upload File as the Action. Then click Save and Continue.

select wordpress upload to google drive action

Step 3: Connect the Accounts

Now you need to connect your Google Account with Zapier. Click on Connect an Account and login to your Google Account. When prompted, Allow Zapier to access your Google Drive.

select google drive account in zapier

Step 4: Choose Your Google Drive Folder

In the Setup Template section, choose your default Google Drive and a folder to save your uploaded files. It’s best to create a new folder to save your contact form uploads for easier management.

setup wordpress upload to google drive preview

Step 5: Choose the File

In the File option, choose File Upload which contains the file you’ve uploaded in the contact form test entry.

choose the file in zapier

Step 6: Customize Options

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

Step 7: Test Upload Form

In the next step, Zapier will test your upload form. Click Send Test To Google Drive. Go to your Google Drive folder and see if you see a copy of the file you attached in your test form entry.

wordpress upload to google drive with zapier

Step 8: Confirm Integration

If you see a file in your Google Drive, then your Zapier integration is successful. You can go ahead and click Finish to complete the Zap.

Step 9: Turn On Zap

Give your Zap a name and Turn it On.

wordpress upload to google drive set up zap

That’s it! If you want, you can do another test form submission to see if it works.

Embed The Upload Form

Now, let’s see how to embed the upload form on your website.

Go to WPForms » All Forms. Find the upload form you’ve created and copy its Shortcode. Then you can paste this code onto a page, a post, or anywhere on your website to make the form appear.

wordpress upload to google drive forms overview

Keep in mind that this method only sends a copy of the uploaded file to your Google Drive. The original file will get stored on your server.

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

Now your users can send you any kind of a file from your contact form.

In Conclusion

There you go! You know now who to send WordPress uploads to Google Drive.

And 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 marketing automation software for your small business.

If you like this article, then please follow us on Facebook and Twitter for more free WordPress tutorials.

Using WordPress and want to get WPForms for free?

Enter the URL to your WordPress website to install.

Comments

  1. Can form Entries be saved as pdf on google drive?
    I can see files only, it will be great if the completed form can be added

  2. Hi Jess & team,

    I’m trying to pair Google Drive files with WordPress and Weebly, i.e. adding in links to both, but am currently getting messages to the effect that “That file is currently unavailable.” I’ve used the technique of putting new word lists/ vocabulary for my students on the links before and it worked really well to share simple info with many students, but now it seems weirdly difficult.
    Any hints or future plans?

  3. Unbelievable, it helped me a lot. Thank you very much =)
    I have a question, how do I make the files that users upload to my google drive are separated by folders with user names?
    Also, this tutorial helped me a lot. It’s amazing. (sorry for my english)
    Deepl Translate

    1. Hi Martin,

      We don’t have a way to do this right now, but I’ve made a note on our feature request list so we can keep it on our radar! Thanks for the suggestion 🙂

      1. Hi,
        coming back to Martin’s inquiry:
        is there now the possibility that an upload from wpforms creates each time a new folder on google drive and stores all form content (or atleast the uploaded files) in that folder?

      2. Hi Tendam — I took a look in Zapier’s options, and I do see an option to select a folder when you set up a Zap (here’s a screenshot). However, during my quick test it didn’t seem to allow me to create a new folder (when I tried, I was getting an error message). The Zapier team may be able to clarify this further, though, because it does look to me like this might be possible.

        What I can see with certainty is that you can custom name your files, and so even if you can’t sort them into files you should be able to easily search/sort if you give your files a specific name format.

        I hope this is at least a helpful starting point! If you have any other questions about our paid licenses or addons, please drop an email to our support team 🙂

    1. Hi Steve,

      We currently don’t have a way of doing this right now. In order to delete the file completely, you’ll need to access your site’s files via FTP, go into Uploads, track down the file and delete it from there. Unfortunately just deleting the entry don’t delete the file itself.

      I hope this helps!

      1. Can I just upload to Google Drive without uploading to the server? I would much rather upload to Google Drive rather then the server.

        It would be a great upgrade to offer a direct to Google drive upload (with option to save on server as well) without using Zapier.

        Your awesome Email option uses direct Google integration. Having a direct connection to Google for uploads would be so great.

      2. Hi STEVE! Thanks for your question!
        Unfortunately, there is no other way currently to upload data to Google Drive. I do agree it would be super helpful to have a Google Drive add-on, though. I’ve made a note of the feature request and we’ll keep it on our radar as we plan out our roadmap for the future.
        Have a good one 🙂

  4. Is there a way to trigger an email for every upload notifying me each time there is a new submission? In other words, if a new doc is uploaded to Google Drive using this system, will I receive an email alert with a link to the file in Google Drive?

    1. Hi Suze, thanks for the question!
      Yes, you can set up Notifications in your form and have a notification email every time once somebody has submitted a form on your site. And we have a great article on how to set up Notifications here.
      Hope this helps! 🙂

  5. thanks for the information shared. it’s very helpful.

    But i want to ask, if it’s possible to filter the name, demography, gender, category etc of the files uploaded.

    1. Hi Segun, I hope you are doing well!

      As the only file from your form will be uploaded to Google Drive the rest of the fields won’t be stored there and can be available under WPForms entries only. However, in WPforms you can filter entries by the form fields.

      I hope this helps.
      Have a good one 🙂

  6. Hi there,

    Have you looked at implementing this so that it uploads directly to Google Drive and bypasses my site’s server? You mentioned it in a response to a previous question, and it would be so useful to be able to do that. For one thing it would help keep the website running fast (essential in the modern era under Google’s SEO!) and for another it prevents malicious files getting onto a website directly.

    Thanks

    Paul

    1. Hi Paul!
      Currently, this feature is unavailable in WPForms, unfortunately. It will still upload files to both, your site and Google Drive through Zapier. We do agree that Google Drive addon would be an awesome addition to WPForms, and I will add your vote for this to our internal system.
      I apologize for any inconvenience and appreciate your suggestion!
      Have a good one 🙂

  7. hello, I buy the plugin today … so how can I prevent a customer from spamming files continuously in ma server ?

    honestly in the upload I prefer contact 7, it sends the file directly by mail … is it possible add this mod ?

    1. Hi Alex, great question!
      With our Form Locker addon, you can restrict users from sending multiple form entries. The system won’t allow users to send more than one entry using the same email address.
      Also, you can set the maximum amount of files in one File Upload field in the filed settings.
      I hope this helps.
      Have a good one 🙂

  8. The upload feature only allows me to import pictures/videos but it doesn’t send them. The uploads just freeze.

    I have the following configuration:

    Max File Size: 250 mb
    Max File Number: 50

    I’ve even added a plugin that increases the maximum file upload.

    Please help.

    Thanks

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.