🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
215 October 27, 2026

Gravity Forms Google Drive Integration: Send Entry Files and PDFs to Drive Automatically

GravityExtra
Gravity Forms Google Drive Integration: Send Entry Files and PDFs to Drive Automatically

A Gravity Forms Google Drive integration should do one simple thing: when someone submits a form, the files they sent end up in the right Google Drive folder, named the way you want, without anyone downloading and re-uploading them. The GravityExtra Google Drive add-on does this from inside WordPress. It sends uploaded files, generated PDFs and Word documents to Drive the moment the entry is submitted, with no automation service in between. You can see the full feature list on the Gravity Forms Google Drive integration page and every step in the Google Drive add-on documentation.

This guide explains what happens to a file after the entry is submitted, how to create the Google Cloud OAuth credentials, how to set up a feed with a sub-folder for every entry, how to rename files with merge tags, how to control who can open them and how to put the Drive links into confirmations and emails. It also covers the recent fixes in versions 2.2.4 and 2.2.5, and what is new in version 2.3.2.

What’s new in 2.3.2: a safer connection and folders you choose

Automatic connection (one click, GravityExtra’s Google app). A new connection asks Google only for the files and folders the add-on creates or that you choose (Google’s drive.file permission), not for your whole Google Drive, and Google shows its normal consent screen with no warning page. A connection made before 2.3 keeps its full Google Drive permission after the update, so uploads do not stop.

Manual connection (your own Google app). If the add-on must reach any folder in your Drive (existing folders typed as an ID, the top level of a shared drive, sub-folders people create by hand, folders set by custom code), use the Manual connection described below. It still has full Google Drive access.

Move an existing site to the new permission (about a minute):

  1. Go to Forms → Settings → Google Drive and click Reconnect Google Drive. Do not use Disconnect for this: Disconnect removes both permissions, and the add-on asks you to confirm when form folders would stop.
  2. Choose your Google account and click Continue on Google’s screen.
  3. Back on the settings page, the Form folders table lists every form with Google Drive enabled. For a row marked Choose folder again, click Choose folder and select the same folder in the picker (tabs My Drive, Shared drives, Shared with me), or click Create a new folder and use Choose where to create it inside another folder or a shared drive.
  4. Under Other folders the add-on uses, click Grant access to folders and pick, once, the folders set by custom code and the sub-folders made by hand (you can select several). The folder settings of your forms do not change.
  5. Until every folder can be reached, uploads keep working with your previous permission, so no form stops sending files.

Shared drives. Folders inside a shared drive work with the picker. The top level of a shared drive cannot be used with the Automatic connection; the add-on detects it and tells you to choose a folder inside it or create one there. The step-by-step upgrade guide with screenshots covers every case. Plans and the full feature list are on the Gravity Forms Google Drive integration page.

What Happens to a File After the Entry Is Submitted

By default Gravity Forms saves uploaded files in your WordPress uploads folder. With the Google Drive add-on active, the flow changes:

  1. The visitor submits the form with one or more files.
  2. The add-on checks the attachments against the allowed types and sizes of the form.
  3. It finds or creates the destination folder in your Drive, including a sub-folder named from the entry data when you ask for one.
  4. The files are streamed to Google Drive through the Google Drive API from your own site.
  5. The Drive links are saved with the entry and are available as merge tags for your confirmation and notification emails.
  6. The local copy is deleted or kept, depending on your retention setting.

Because the add-on talks to Google directly, there is no per-task fee. Automation services such as Zapier or Make are useful for many jobs and you can still use them, but you do not need one just to move form files into Drive.

What You Need

  • WordPress 5.8 or later and Gravity Forms 2.5 or later.
  • PHP 7.4, 8.0, 8.1, 8.2 or 8.3.
  • A Google account or Google Workspace account (access to the Google Cloud Console only for the Manual connection).
  • An active license key for the add-on.

Create Your Google Cloud OAuth Credentials

With the one-click Automatic connection you can skip this section. For the Manual connection, the add-on connects with Google’s standard OAuth 2.0 protocol, using an app that you create in your own Google Cloud project. Your Google password is never stored in WordPress. The exact screens are in the documentation; this is the outline.

  1. Create a project. In the Google Cloud Console open the project selector, click New Project, give it a recognizable name and make it the active project.
  2. Enable the Google Drive API. Go to APIs and Services, then Library, search for Google Drive API and click Enable.
  3. Configure the OAuth consent screen. Choose External (or Internal if you use Google Workspace within an organization), fill in the app name, support email and developer contact, and continue through the scopes step.
  4. Publish the app. Under Publishing status click Publish App and confirm. If the app stays in Testing status, Google expires the refresh tokens after 7 days and you would have to reconnect every week.
  5. Create the OAuth client. Under Credentials choose Create Credentials, then OAuth client ID, and select Web application. Under Authorized redirect URIs add the exact Redirect URI shown in WordPress under Forms, Settings, Google Drive, then click Create.
  6. Connect WordPress. Copy the Client ID and Client Secret, paste them as App Key and App Secret in Forms, Settings, Google Drive and click the link to connect to Google Drive. Choose your Google account and allow access.

Since version 2.2.5 (October 26, 2026), connecting and disconnecting Google Drive needs a signed-in user who can manage the add-on settings, and a connection is only accepted when it was started from this site’s settings page. Your connection, settings and feeds are untouched by the update.

Set Up a Feed: Folder, Sub-Folder, Field and Naming

Add a File Upload field to your form. The add-on supports single and multiple file uploads and the file extensions that WordPress allows. Then open the form, go to Settings, then Google Drive, and configure the feed.

  • Google Drive Enabled. Switch on synchronization for this form.
  • Destination Folder. Choose the target folder from the folder tree. A Folder Depth Level setting, up to 3 levels, controls how deep the dropdown scans your Drive, which keeps lookups fast on accounts with many folders.
  • Enable Sub Folder. Creates a dedicated sub-folder for every entry inside the destination folder.
  • Sub-Folder Naming Rule. Use merge tags to name each folder, for example the name fields plus the entry ID, or a date tag such as {date_mdy}.
  • File Upload Field. Select All File Upload Fields or restrict the feed to one field.

A job-application form can then create a folder such as Applications/{date_mdy} with a sub-folder named from the applicant’s name and entry ID. Staff find every document of one person in one place, instead of sifting through hundreds of loose files.

Rename Files with Merge Tags

Raw file names such as scan12.pdf or IMG_5839.PNG are hard to audit. Tick Enable Custom File Name and enter a pattern in the Custom File Name field. Examples from the documentation:

  • {form_title}-{entry_id}-{original_filename}
  • {Name (Last):1.6}_{Name (First):1.3}_{date_mdy}-{original_filename}
  • Invoice_{entry_id}_{Company:3}-{original_filename}

The special tag {original_filename} inserts the visitor’s original file name without its extension. The add-on keeps the proper extension at the end, so you never end up with a name like file.pdf.pdf.

Keep or Delete the Local Copy

Heavy uploads such as videos, high-resolution photos and large PDFs can fill the uploads folder of a WordPress site, slow down backups and use up hosting storage or file-count limits. The Local File Retention toggle in the feed settings lets you decide:

  • Toggle disabled (auto-purge). The file goes to Google Drive and the local copy on your WordPress server is deleted once the upload is confirmed.
  • Toggle enabled (keep local copy). The file goes to Google Drive and a duplicate stays in your media upload directory as a backup.

Choose the first option for storage savings, or the second when your own backups must also hold the files.

Control Who Can Open the Files

By default files uploaded through the API inherit the permissions of the parent folder. In the feed you can override that for each form:

  • Anyone with the link. Read-only access for anyone who has the file URL. Suitable for public downloads and open contest submissions.
  • Restricted. Enter one or more comma-separated email addresses. Only signed-in Google accounts that match those addresses can open the file. This suits HR, legal and finance records.

Send Generated PDFs and Word Documents to Drive

The add-on does not only move what visitors upload. When you generate documents from the entry, such as invoices, certificates and contracts, they can be uploaded too. Create a PDF template feed under Settings, then PDF in your form, and it appears next to the normal file fields in the File Upload Field selector of the Google Drive feed. The same applies to Word files from the Gravity Forms Microsoft Word add-on. To learn more about generating PDFs, read our complete guide to Gravity Forms PDF.

Put the Drive Links in Confirmations and Emails

Two merge tags let you share the uploaded files without attaching them:

  • {googledrive:file_urls} outputs plain-text Drive URLs separated by new lines. It suits webhook payloads and plain-text alerts.
  • {googledrive:file_urls_rich_text} outputs clickable HTML links with the original file names. It suits confirmation pages and HTML notification emails.

Paste the tag into a confirmation message or a notification and the link to the file in Drive is delivered to your team or to the client.

Using Google Drive and OneDrive on the Same Site

Some sites send files to more than one cloud. Version 2.2.4 (October 18, 2026) fixed a conflict with the Gravity Forms OneDrive add-on: with both add-ons active the site stopped with a fatal error (Cannot declare class File). If you keep both active, make sure both are updated. Read more about the companion add-on on the Gravity Forms OneDrive integration page.

Developer Hook

From 2.3.2 the filter googledriveaddon_destination_folder_id ($folder_id, $form, $entry) sends each entry to its own folder; with the Automatic connection that folder must be one the add-on created or that you granted with Grant access to folders. The filter googledriveaddon_fields_support returns the list of Gravity Forms field types whose uploads are sent to Google Drive. The default list is fileupload, googledrive and image_hopper. You can limit the add-on to standard File Upload fields by returning only fileupload from the filter. Add the filter in your theme’s functions.php or in a small plugin, and register it before Gravity Forms loads its add-ons.

Google Drive Add-On or Cloud File Picker?

These are two different tools. The Google Drive add-on described here sends files from a form to Drive. If instead you want visitors to attach files from their own Drive or Dropbox while filling in the form, see our guide to letting visitors attach files from Google Drive and Dropbox in Gravity Forms. For a wider view of upload options, read the complete guide to Gravity Forms file uploads.

Troubleshooting and Frequently Asked Questions

Why do I get Error 400: redirect_uri_mismatch?

The Authorized Redirect URI in Google Cloud does not match the URL your WordPress site generates. Copy the URI character for character from Forms, Settings, Google Drive, including https:// and any trailing slash.

Why does the connection expire after 7 days?

Google revokes refresh tokens after 7 days when the OAuth consent screen is in Testing status. Go to APIs and Services, then OAuth consent screen, and click Publish App.

Are Google Workspace Shared Drives supported?

Yes. From version 2.3.2, choose a folder inside a shared drive in the Google Drive folder picker (tab Shared drives), or create a new folder in a shared drive with Create a new folder → Choose where. The top level of a shared drive itself needs the Manual connection. The connected Google account must be a member of the shared drive with the Contributor role or higher.

Do uploaded files take up space on my web hosting?

Not when the local copy is deleted after upload. With the Local File Retention toggle disabled, the file is removed from your server once Drive has it.

Can it send form data to Google Docs or Google Sheets?

No. This add-on sends files, meaning uploaded files and generated PDF and Word documents, to Google Drive. It does not write entry data into Docs or Sheets.

Get the Gravity Forms Google Drive Add-On

Ready to stop downloading and re-uploading form files? See the plans on the Gravity Forms Google Drive integration page and follow the Google Drive documentation to connect your first form. You can also browse the full list of Gravity Forms add-ons.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr