File Uploads with Postgraphile
We use GCP Storage Buckets to store files in managed blob storage, to have our Postgraphile API be aware of changes of these files, we have implemented the following UML diagram for a user to upload their files.
- Create the signed URL through the GraphQL API
As of today, we do not support resumable uploads. For large files, we communicate with our clients via a shared Google Drive folder.
Client would upload to that URL
That would go into a temporary bucket - all objects expire in a day
The URL would send the URL to GraphQL through the proper place This would be a custom mutation like
The temporary URL would be sent as part of the mutation
Wrap the resolver - create a signed url to read