ckcabs
1
Hi all,
I’m trying to integrate the GoogleDrivePicker
plugin with Uppy v4.17.0 and running into a 404
error when it attempts to POST to:
POST https://DOMAIN/companion/google-picker/get
→ 404 (Not Found)
Setup
- Uppy version:
v4.17.0
- Companion:
transloadit/companion:latest
(running via Docker on port 3020
)
- Frontend companion URL:
companionUrl: 'https://DOMAIN/companion'
- Reverse proxy: Apache 2.4 (proxying
/companion
to localhost:3020
)
.use(GoogleDrivePicker, {
companionUrl: 'DOMAIN/companion',
clientId: 'YOUR_CLIENT_ID',
apiKey: 'YOUR_API_KEY',
appId: 'YOUR_APP_ID',
locale: {
strings: {
pickFiles: 'Select files from Google Drive'
}
}
});
Google Cloud Console Config
Authorized JavaScript origins:
https://DOMAIN
Authorized redirect URIs:
https://DOMAINt/companion/drive/redirect
is the redirect url correct there is no documentation on this for google file picker
tried https://DOMAIN/companion/file/redirect
https://DOMAIN/companion/googledrivepicker/redirect
https://DOMAIN/companion/GoogleDrivePicker/redirect
https://DOMAIN/companion/google-picker/redirect
https://DOMAIN/companion/drive/redirect
Problem
- Google Picker UI opens and allows login.
- After selecting files, Uppy attempts to
POST /google-picker/get
— and fails with 404.
- Remote sources like Dropbox and OneDrive work fine.
- There’s no mention of
/google-picker/get
in the Companion docs or codebase.
Any help, guidance, or working examples would be much appreciated!
Thanks,
Chris
ckcabs
2
managed to fix that enabling - COMPANION_ENABLE_GOOGLE_PICKER_ENDPOINT=true