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,
- user clicks on the Google Drive icon in the Uppy dashboard which instead opens the Google Picker UI
- user signs in to their Google account (access token is noted)
- user selects files from Google Picker and clicks submit
- the data gets massaged a little so it can be given to Uppy and shown in the Dashboard
- user clicks the Uppy upload button
- 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)
- 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.