DEV Community

Cover image for How to build a serverless photo upload service with API Gateway

How to build a serverless photo upload service with API Gateway

Paul Swail on October 25, 2019

So you’re building a REST API and you need to add support for uploading files from a web or mobile app. You also need to add a reference to these u...
Collapse
 
dariansampare profile image
Darian Sampare

I've gone down this rabbit hole a few times myself... One thing that always stumps me when relying on S3 and just storing the url in the DB server side is how to get around handling unused images/files.

Say the user uploads an image, then navigates away from the page before saving to the db. Is this something you've ran into in this approach or are the storage costs so negligable in S3 that this just is ignored?

Collapse
 
burdier profile image
Burdier

thanks later i will read it