Supabase Storage now in Beta
Supabase Storage moves to Beta with range-request streaming for audio/video, whole-bucket public visibility (private by default, to avoid S3-style per-object exposure), directory uploads via the File and Directory Entries API, an RLS policy editor with SQL templates, and a local-filesystem backend so self-hosted setups need no S3. To keep supabase-js small and universal without a FormData polyfill or separate Node/browser bundles, the server now accepts raw binary bodies, letting clients upload Buffers, Blobs and Node streams. The dashboard emulates filesystem semantics on S3: move becomes copy-then-delete, and placeholder files keep empty directories from disappearing. Upsert support and list virtualization for large buckets are also added.
Related posts
- Storage is now available in Supabase
Supabase mediumAdeptSupabase Storage is an object store built as a custom TypeScript/Fastify API server behind Kong, with object metadata and access policies kept in each project's Postgres database and objects stored in S3. Existing servers like Minio, Ceph and Zenko were rejected because they couldn't use Postgres as their datastore, carried features unnecessary on managed backends, and didn't map to Supabase Auth. Authorization uses Postgres Row Level Security on a storage.objects table: if a user can select or delete the row, they can read or delete the object, so policies are written in SQL and listing filters happen in the database. Uploads stream through Node streams to S3 with minimal buffering, trading off knowing the object size upfront, and objects get a default 1-hour Cache-Control header.
- Supabase Storage v3: Resumable Uploads with support for 50GB files
Supabase mediumAdeptSupabase Storage v3 adds resumable uploads via the open TUS protocol, raising the max file size to 50GB on Pro plans. To scale tus-node-server across load-balanced instances without sticky sessions, Storage uses Postgres transactional advisory locks keyed on a hash of the object path, so only one server writes a given object's chunks to S3 at a time. The release also adds image quality and format transforms with WebP by default, a Next.js image loader, presigned upload URLs, and per-bucket size and MIME-type limits.
- Recreating S3 in Postgres using PostgREST
Neon mediumAdept
A simple S3-like file server can be built inside Postgres by storing binary data in a BYTEA table and exposing it through PostgREST's functions-as-RPC via the Neon Data API. A custom "*/*" domain lets a PL/pgSQL function return arbitrary media types and set Content-Type, Content-Disposition and Cache-Control headers, and generated columns compute size, MIME type and SHA-256 hash. Row-level security policies on anonymous and authenticated roles, with JWT-based user IDs, restrict access to public or owned blobs. Tables grant SELECT to anonymous users by default, so RLS setup is essential, and the pattern is meant as a teaching vehicle rather than a real S3 replacement.
- Supabase Storage: major performance, security, and reliability updates
Supabase mediumAdeptSupabase Storage replaces its trigger-maintained prefixes table with a hybrid skip-scan algorithm that derives folder structure at read time, and switches from OFFSET to cursor-based pagination, making deep pagination up to 14.8x faster on 60 million rows with no write penalty. The release also closes a file-backend path traversal bug and blocks direct SQL DELETEs on storage tables that orphaned S3 objects. It adds Postgres query cancellation on client disconnect, idempotent migrations verified by pg_dump comparison, a fix for a TUS S3 lock renewal race, and a move from prom-client to OpenTelemetry metrics. No code changes are required, though switching to the listV2 endpoint is recommended.
- Supabase Analytics Buckets with Iceberg Support
Supabase mediumAdeptSupabase Analytics Buckets, now in private alpha, are a separate storage bucket type built on the Apache Iceberg table format, chosen for append-only history, snapshot-based time travel, schema evolution and open-format portability. Buckets live in a new `storage.buckets_iceberg` table, expose a REST catalog that tools like pyiceberg can use to create namespaces and tables, and are queried via SQL through the new Supabase Iceberg Wrapper by mapping tables into a non-public Postgres schema. Writes currently require external Iceberg-compatible ingestion until upstream iceberg-rust gains write support. Alpha limits are two buckets per project, five namespaces per bucket and ten tables per namespace.