• Docs
  • Talk to an expert
Blog
Blog
BlogProductCase studiesNewsInsights
Blog

What is object storage? S3-compatible storage explained

dataAWSinfrastructurecloud
27 November 2026
Share

TL;DR

  • Object storage keeps files as objects in containers called buckets. You reach them through a web API, not by opening a disk.
  • Each object has a unique key, its data, and some descriptive information called metadata.
  • It's built for large and growing amounts of files, such as uploads, images, videos, backups, and exports.
  • "S3-compatible" means a service speaks the same API as Amazon S3, so the same tools and code libraries work with it.
  • It's a poor fit for databases or for files that need frequent small edits.
  • Upsun Cloud includes built-in S3-compatible object storage, which you turn on from the Console or with one CLI command.

Object storage is a way of storing files as self-contained objects, each with a unique name, in a large pool called a bucket. Instead of opening a file on a disk, your app asks the storage service for an object by its name, over a web API.

It's how many apps store user uploads, media libraries, backups, and generated files, because it grows without limits you have to manage and works the same way from any server. This guide explains how object storage differs from disk storage, what "S3-compatible" means, and when to use it.

Three kinds of storage

Key takeaway: disks store blocks, shared file systems store files in folders, and object storage stores objects in buckets reached through an API.

 Block storageFile storageObject storage
What it isA disk attached to one serverA shared network drive with foldersA bucket of objects reached over an API
How you use itThrough the operating system, like any diskThrough files and folders, from several serversWith API requests, such as upload, download, and delete
Good forDatabases and the operating systemFiles several servers read and editLarge and growing collections of files
Grows byResizing the diskResizing the shareAdding objects, up to the bucket's capacity

How object storage works

Key takeaway: you store and fetch whole objects by their key, and folders are just a naming convention.

TermMeaning
BucketA container for objects, like a top-level storage area
ObjectOne stored item: its data, plus metadata such as its type and size
KeyThe object's unique name within the bucket, such as invoices/2026/10/1234.pdf
PrefixThe start of a key, such as invoices/2026/. Tools show prefixes as folders, but there are no real folders

Apps use a small set of operations: put an object, get an object, delete an object, and list objects that start with a prefix. Objects are written whole. To change one, you upload a new version of the entire object.

What "S3-compatible" means

Key takeaway: Amazon S3's API became the common language of object storage, so S3-compatible services work with the same tools and code.

Amazon S3 was one of the first widely used object storage services, and its API, the set of requests apps send to it, became a de facto standard. Many other providers offer services that understand the same requests.

For you, that means portability. The AWS code libraries for many programming languages, command-line tools such as the AWS CLI and rclone, and many app plugins all work with an S3-compatible service. You usually only change the address they connect to and the credentials they use.

When to use object storage

Key takeaway: use object storage for files you store and fetch whole. Use a database or disk for data that changes in small pieces.

Good fitPoor fit
Files users upload, such as photos and documentsA database's own data files
Media libraries with images, audio, and videoFiles edited in small pieces many times a second
Backups and data exportsYour app's code
Files your app generates, such as reports and invoicesSmall amounts of files one server reads and writes, where a disk is simpler

Object storage also helps when an app runs on several servers. A file saved to one server's disk is missing from the others, but every server can reach the same bucket. Our guide What is autoscaling? explains why that matters.

Common object storage mistakes

Key takeaway: many object storage problems come from treating it like a disk, or from careless access settings.

MistakeWhat happensHow to avoid it
Making a bucket public by accidentPrivate files can be found and downloaded by anyoneKeep buckets private and give access deliberately
Putting access keys in codeKeys end up in Git, where anyone with access can read themRead credentials from environment variables. Our guide What is a .gitignore file? covers keeping secrets out of Git
Treating it like a diskRenaming a "folder" means copying every object in it, and small edits mean re-uploading whole filesDesign around whole objects and stable keys
Listing a huge bucket on every requestPages slow down as the bucket growsStore the keys you need in your database

Object storage on Upsun Cloud

Key takeaway: Upsun Cloud includes S3-compatible object storage in the platform, connected to your app automatically and covered by your existing backups and invoice.

According to the Upsun docs, object storage on Upsun Cloud is an S3-compatible bucket attached to your app. Set a size, and Upsun Cloud creates the bucket and connects it. Turn it on in the Console, under Configure resources, or with one command:

upsun resources:set --object-storage myapp:524288
What to knowDetails from the Upsun docs
CompatibilityYour existing S3 tools and SDKs work as they are
Connection detailsProvided automatically as environment variables, such as OBJECT_STORAGE_HOST and OBJECT_STORAGE_ACCESS_KEY, through a relationship named object-storage
SizesFrom 512 GB to 10 TB, in steps of 512 GB. The command above takes the size in MB
BillingOn allocated capacity, not the amount stored, prorated hourly and shown on your existing Upsun invoice. Backup storage is billed separately. See the pricing page for rates
BackupsBacking up an environment includes the bucket's contents
Preview environmentsBranching an environment clones the bucket along with the rest of its data
TrialsObject storage isn't available on trial projects
Removing itSetting the size to 0 permanently deletes the bucket and everything in it on the next deployment, with no retention period

Here's how a Python app might upload a file, using the connection details Upsun Cloud provides:

import os
import boto3
from botocore.config import Config

s3 = boto3.client(
    "s3",
    endpoint_url=f"{os.environ['OBJECT_STORAGE_SCHEME']}://{os.environ['OBJECT_STORAGE_HOST']}:{os.environ['OBJECT_STORAGE_PORT']}",
    aws_access_key_id=os.environ["OBJECT_STORAGE_ACCESS_KEY"],
    aws_secret_access_key=os.environ["OBJECT_STORAGE_SECRET_KEY"],
    region_name=os.environ["OBJECT_STORAGE_REGION"],
    config=Config(s3={"addressing_style": "path"}),
)

s3.upload_file("report.pdf", "myapp", "reports/2026/report.pdf")

For a few files that one instance reads and writes through the file system, the docs suggest a mount is usually simpler. Object storage is the better fit for large or growing collections. Read more in our launch post.

You can deploy on Upsun Cloud free for 15 days, with no card needed. Note that object storage isn't included in trials, so you'll need a paid project to try it.

Frequently asked questions

What is the difference between object storage and block storage?

Block storage is a disk attached to a server, used through the operating system. Object storage is a pool of objects reached over a web API, from any server.

What is an S3 bucket?

A container for objects in Amazon S3 or an S3-compatible service. Each bucket holds objects, each with its own unique key.

What does S3-compatible mean?

That a storage service understands the same API as Amazon S3, so the same tools and code libraries work with it.

Can I edit a file in object storage?

Not in place. You upload a new version of the whole object, which replaces the old one.

Is object storage cheaper than disk storage?

Often, for large volumes, because it's designed for bulk storage. Compare the pricing for the amount you'll store, including backups and any request or transfer charges.

Can I use object storage with WordPress or Drupal?

Yes. Plugins and modules for both can store media in S3-compatible storage instead of the local file system.

Stay updated

Subscribe to our monthly newsletter for the latest updates and news.

Deploy possibility.
Try Upsun for free.

Build with DispatchDeploy on Cloud