Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Supabase 7 min read Release mediumAdept

Supabase Storage v3: Resumable Uploads with support for 50GB files

Supabase 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.

Assumes: HTTP file uploadsPostgres transactionsS3 object storage

Related posts

  • Storage is now available in Supabase

    Supabase mediumAdept

    Supabase 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 now in Beta

    Supabase mediumAdept

    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.

  • Supabase Storage: major performance, security, and reliability updates

    Supabase mediumAdept

    Supabase 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.

  • Persistent Storage and 97% Faster Cold Starts for Edge Functions

    Supabase mediumAdept

    Supabase Edge Functions can now mount any S3-compatible bucket, including Supabase Storage, as a POSIX-like directory under /s3, configured through four S3FS_* environment secrets. One example reads a SQLite backup from S3 into memory and pushes aggregates to Postgres. Cold starts improved after workers still doing initial script evaluation were moved off the shared cooperatively scheduled Tokio thread pool onto a dedicated blocking pool, so heavy startup work no longer stalls neighbouring functions. In the benchmark, average boot time fell from 870 ms to 42 ms and P99 from 15 s to 460 ms. Synchronous file APIs are now allowed during initial script evaluation only, not inside request handlers or timers.

  • Supabase Storage v2: Image resizing and Smart CDN

    Supabase mediumAdept

    Supabase Storage adds on-demand image resizing via imgproxy, storage webhooks, rate-limiting and a Smart CDN that invalidates cached objects globally within about 60 seconds of an update or delete. Resizing is requested from the client through URL parameters, never upscales beyond the original, and uses resize modes that mirror CSS object-fit. The CDN builds cache keys from ETag, tenant ID, bucket and object name, stored in a global KV store. A cache manager consumes storage webhook events to refresh ETags, which avoids CDN purge limits and raised cache hit rates. The resizer and Storage API run as separate containers so they scale independently, and pricing is per transformed image rather than per transformation.

The quest for software engineering knowledge.

Look:
Layout: