Book a 30-min callBook a call

What is object storage? Storing files and uploads in a web app

Object storage, such as Amazon S3, holds an app’s files, images and uploads. How buckets and objects work, safe uploads with signed URLs, and common mistakes.

A bucket holding labelled file objects, with a browser uploading one through a small key-shaped link.
Written by
BYD Tech
Updated
Topic
Web apps
Reading time
3 min read

Questions people ask

What is object storage?

A service that stores files as objects in containers called buckets, each with a unique key. Amazon S3, Google Cloud Storage and Cloudflare R2 are examples.

Should I store files in my database?

Usually not. Store the file in object storage and keep its key and details in the database. It is cheaper and keeps the database fast.

What is a signed URL?

A temporary link that grants access to one file, for upload or download, for a limited time, without making the bucket public.

Is S3 private by default?

Yes. New S3 buckets and their objects are private, and public access is blocked by default. AWS recommends keeping it that way unless needed.

Building something like this?