Google Drive Uploads with Iptanus File Upload Plugin

Iptanus File Upload plugin Google Drive integration logo

Since version 4.6.0, the Iptanus File Upload plugin can send uploads to Google Drive. Files that your visitors upload are transferred to a Drive account of your choosing.

Connecting a Google Drive account

First you need to name the account and give the plugin access to it. Open the plugin’s Settings in the Dashboard:

The Google Drive Uploads option in the plugin's Settings, showing as not activated

The Google Drive Uploads option shows as not activated, with a Press here button beside it. Pressing it opens a new page or tab, which asks you to choose a Google account and then tells you that “Iptanus File Upload Plugin wants additional access to your Google Account“:

The Google consent screen asking for additional access to the account

Press Continue. The page closes, the approval finishes, and the setting reads “Activated”:

The Google Drive Uploads option showing as activated

If the page does not close when you press Continue, and you see something like this instead:

The Google authorisation page failing to close after Continue is pressed

close the window and start again with the Press here button. The second attempt normally goes through.

Sending a form’s uploads to Google Drive

Add the attribute gdrive=”true” to the plugin’s shortcode. If you prefer the Shortcode Composer, open the Interoperability tab and switch on Upload to Google Drive:

The Interoperability tab of the shortcode composer, showing the Google Drive options

The four further options

  • The destination folder — the gdrivepath attribute, or Google Drive Path in the composer. A folder that does not exist yet is created when the first file arrives. With no path set, files go to the root of the account.
  • The user data — the gdriveuserdata attribute, or Include Userdata in the composer. If your upload form collects user data, it is written into the file’s Drive description:
  • A file in Google Drive with the submitted user data in its description field
  • The local copy — the gdrivelocal attribute, set to “delete” or “keep”, or Local File Action in the composer. It decides whether the file stays on your own server once it has been transferred.
  • Duplicates — the gdriveduplicates attribute, or Trash Duplicates in the composer. Google Drive is happy to keep several files of the same name in one folder; with this on, any earlier file of that name is sent to the bin, so only the newest survives.

Once Google Drive uploads are switched on, every file uploaded through the plugin is transferred to the account you connected.

If you have questions, problems or suggestions, please contact us.

The Iptanus team

Did this solve your problem?

20 discussions

Most recent: February 2024

Questions answered by Iptanus and other users.

  1. Adrian Klawikowski

    Hello.

    Great plugin!

    Q: How can I get list of folders of Google Drive to choose by the user before sending a file?

    Regards!

    Adrian

    1. Hi Adrian. Unfortunately this is not supported. Is the list of folders fixed or dynamic?

      Regards

      Nickolas

  2. If Google Drive is blocked on the visitor’s country like China, will this still work? Does your uploadered directly upload to Google Drive or does it get uploaded to my website first before moving to Google Drive?

    1. Hi, files are first uploaded to the website and then transferred to Google Drive. So, if your website is in China I am not sure if it will work.

      Regards

      Nickolas

  3. Debashish Pal

    Where do you store the data which shows up on the page “List of Uploaded Files” ? I would like to clear that data occasionally.

    1. There is Clear Log button in Maintenance Actions Dashboard page of the plugin that clears data based on a selected period.

      Regards

      Nickolas

Ask a question

Answered by Iptanus, usually within a working day.

Ask a question

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top