keepthatworktoyourself / wombat

Not another website builder. Public repo — raise issues, request features, get help.
2 stars 0 forks source link

Media uploads: upload from browser directly to S3 #340

Closed bhallstein closed 7 months ago

bhallstein commented 7 months ago

Currently we upload to the API, which resizes items, determines their mime types & dimensions, saves all this to the DB, and then uploads the files to S3. This has disadvantages:

It'd be preferable to offload uploads to cloud infra.

We can do this by having the client request a pre-signed upload URL, then use this to perform this upload. A dedicated piece of infra (for now, the API) can munch through recent uploads to generate sized versions asynchronously.