Black Lives Matter

Neon Law

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.

  1. Create the signed URL through the GraphQL API
  1. Client would upload to that URL

  2. That would go into a temporary bucket - all objects expire in a day

  3. The URL would send the URL to GraphQL through the proper place This would be a custom mutation like setUserAvatar, setUserRetainer addDocument, addAttachment

  4. The temporary URL would be sent as part of the mutation

  5. Wrap the resolver - create a signed url to read

Share this on:



Edit this page on GitHub  

The Upward Mobility Law Firm

All content presented herein is for informational purposes only. Nothing should be construed as legal advice. Transmission and receipt of this information is not intended to create and does not constitute, an attorney-client relationship with lawyers on this platform. There is no expectation of attorney-client privilege or confidentiality of anything you may communicate to us in this forum. Do not act upon any information presented without seeking professional counsel.

About UsPractice AreasBar PrepLegal Templates

Currently viewing this site in English

Switch to Dark Mode

SupportPGP Key
Privacy PolicyTerms of ServiceModern Slavery Statement

Copyright © 2020 Shook Law PLLC

This website is monitored with Fathom Analytics.