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. Debashish Pal

    I have configured it to directly upload the file to Google drive. Although the file get uploaded to the wordpress server, it does NOT get uploaded to google drive. Its showing status : “File is being transferred to google drive:root” on the “List of Uploaded Files” page.
    When I did first setup the plugin, the files where successfully uploading to gdrive. But when I checked after a day, it has stopped uploading any new files.
    Can you please help …

  2. Debashish Pal

    I tried unlinking the google drive and relinking it. But now the “Press Here” button is not opening the google drive login page.

  3. Debashish Pal

    Below is the error I get when I click on “Google Drive Uploads: Press Here” button.

    20200523T171436: http://www.xyz.com/wp-admin/admin-ajax.php
    PHP Warning: file_get_contents(https://iptanusservices.appspot.com/wp-admin/admin-ajax.php): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found

    in /hermes/bosnacweb02/bosnacweb02bg/b1720/sl.mysite/public_html/wp-content/plugins/wordpress-file-upload-pro/lib/wfu_functions.php on line 7751
    PHP Fatal error: Uncaught Error: Call to a member function createAuthUrl() on null in /hermes/bosnacweb02/bosnacweb02bg/b1720/sl.mysite/public_html/wp-content/plugins/wordpress-file-upload-pro/extensio

    1. Hi, I just tested it in my environment. I cannot reproduce your problem. Set Post Method option in Settings to cURL. Then try to connect to Google Drive again. Does it work?

      Nickolas

      1. Debashish Pal

        Below is the error with cUrl switched on:

        20200525T121002: http://www.banc-online.org/wp-admin/admin-ajax.php
        PHP Fatal error: Uncaught Error: Call to a member function createAuthUrl() on null in /hermes/bosnacweb02/bosnacweb02bg/b1720/sl.ncbongs/public_html/wp-content/plugins/wordpress-file-upload-pro/extensions/wfu_gdrive/_wfu_gdrive.php:9
        Stack trace:
        #0 /hermes/bosnacweb02/bosnacweb02bg/b1720/sl.ncbongs/public_html/wp-content/plugins/wordpress-file-upload-pro/extensions/wfu_gdrive/wfu_gdrive_ajaxactions.php(22): wfu_gdrive_authorize_app_start()
        #1 /hermes/bosnacweb02/bosnacweb02bg/b1720/sl.ncbongs/public_html/
        20200525T121006: http://www.banc-online.org/wp-admin/admin-ajax.php
        PHP Fatal error: Uncaught Error: Call to a member function createAuthUrl() on null in /hermes/bosnacweb02/bosnacweb02bg/b1720/sl.ncbongs/public_html/wp-content/plugins/wordpress-file-upload-pro/extensions/wfu_gdrive/_wfu_gdrive.php:9
        Stack trace:
        #0 /hermes/bosnacweb02/bosnacweb02bg/b1720/sl.ncbongs/public_html/wp-content/plugins/wordpress-file-upload-pro/extensions/wfu_gdrive/wfu_gdrive_ajaxactions.php(22): wfu_gdrive_authorize_app_start()
        #1 /hermes/bosnacweb02/bosnacweb02bg/b1720/sl.ncbongs/public_html/

        1. Debashish Pal

          Can you please remove the website url from the earlier post/reply before making the past active.

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