Skip to content
App
Markdown

Object storage

env.storage — S3-shaped blob storage as a manifest grant.

Planned. This page describes intended behavior. It is not implemented yet, and details may change before it ships.

env.storage is S3-shaped object storage for the blobs that do not fit KV's 1 MiB value limit: media, generated files, uploads.

await env.storage.put('media/hero-2026.avif', file.stream(), {
  contentType: 'image/avif',
});
const object = await env.storage.get('media/hero-2026.avif');

Like every capability, it is a manifest grant: an app that does not declare it does not have it, and one app's store is never visible to another.

Under the binding sits whatever the installation runs — the platform's own object store on our cloud, or yours on your iron. Apps never see endpoints, buckets or credentials; the binding is the entire surface, which is what makes an app portable between the hosted platform and a self-hosted box without a code change.

Static release files do not belong here — the deploy pipeline already content-addresses those, serves them with strong ETags, and rolls them back with the release. env.storage is for what your app produces and accepts at runtime.

Previews

A preview reads production's objects and never writes them, the same rule as SQL. Rolling back a release does not roll back its objects.

Type to search. ↑↓ to move, Enter to open, Esc to close.