The Google Drive add-on allows you to configure file fields to upload directly to a connected Google Drive account. You can choose which path to upload the files to and can easily access the files from the submissions page.
The add-on creates a new file handler to WS Form called Google Drive.
Installation
The Google Drive add-on is installed in the same way as installing the WS Form PRO plugin.
Once installed you will need to activate the license for the plugin. When you purchase the Google Drive add-on, you will be given a license key. If you have lost your license key(s), click here.
To activate your license key:
- Click WS Form in the WordPress administration menu.
- Click Settings.
- Click the Google Drive tab at the top of the page.
- Enter your license key.
- Click the Activate button.
If your license key fails to activate, please ensure you are using the correct license key and not your WS Form PRO license key.
Connecting to Google Drive
In order to use the add-on, you need to connect it to Google Drive. Connecting is easy!
- Click WS Form in the WordPress administration menu.
- Click Settings.
- Click the Google Drive tab at the top of the page.
- Click Connect and follow the onscreen prompts

If you do not have a Google Drive account, you can create a new account here.
How to Configure File Fields for Google Drive
To configure a file field to push its uploads to Google Drive:
- Click the settings icon on the file field.

- In the basic tab change the File Handler setting to Google Drive.

-
Optionally, change the Upload path. The upload path defaults to:
/WS Form/#form_id/#submit_hash/#field_id/You can use WS Form variables in this path to make it dynamic. The default value ensures each form, submission and field on the form is given its own folder in Google Drive to minimize the chance of files being overwritten. Bear in mind that each file field can be configured with the Multiple setting to be able to upload more than one file.
Some variables you might find helpful for this path are:
Variable Description #form_idReturns the ID of the form. #submit_hashA unique identifier for the submission. #field_idThe ID of the file field. -
Optionally, specify the Root Folder ID.
The root folder ID defaults to My Drive (blank).
To upload files to a Shared Folder, click on the folder in Google Drive and copy the folder ID from the address bar. For example:

In this example, the Root Folder ID you would enter would be:
14CRFg10wD77EWTCV4ewlm_cbS7tduXoL
To upload files to a Shared Drive, copy the shared drive ID from the URL in the same manner. Shared drive IDs begin with
0A.
Accessing Google Drive Uploads
To access the files that are uploaded to Google Drive, you can click on the file upload icons in submissions as you would any other file upload. The files are, of course, also accessible from within your Google Drive folder.

