To use Google Drive you must pass Google's Tier 2 Security Assessment

Hey all, it’s been a while! I decided to go a slightly different route. Instead of using Uppy’s implementation of a Google file picker, I’m using the Google File Picker API.

The Google Picker API uses a more limited scope and does not require the security assessment.

So basically,

  1. user clicks on the Google Drive icon in the Uppy dashboard which instead opens the Google Picker UI
  2. user signs in to their Google account (access token is noted)
  3. user selects files from Google Picker and clicks submit
  4. the data gets massaged a little so it can be given to Uppy and shown in the Dashboard
  5. user clicks the Uppy upload button
  6. a custom Uppy plugin is used to upload links to the Google Drive files and the access token to my PHP server (instead of the Companion server)
  7. my server then downloads the files, processes them, then uploads to S3

Uppy and Companion got me most of the way to what I needed, but I needed to write a custom solution for Google Drive. It performs well enough for now. Let me know if anyone would like more details on the implementation.





1 Like