product··5 min read·WoWSQL Team

File Storage for Web and Mobile Apps: 2026 Options

File storage for apps in 2026: Firebase Storage, Supabase Storage, Cloudflare R2, AWS S3, Appwrite and WoWSQL compared on price, auth, file links and CDN.

The best file storage for an app depends on who can see the files. If you already use a backend as a service, its built-in storage is usually right: Firebase Storage and Supabase Storage tie file access to your users, and WoWSQL Storage gives you public and private buckets next to your Postgres database on flat $0 / $25 / $99 plans. If your app serves a lot of large media, raw object storage such as Cloudflare R2 (no egress fees) or AWS S3 is cheaper per gigabyte, but you build the access rules yourself.

This guide compares six options on price, auth integration, expiring links and delivery, then shows a working pattern for avatars and private documents on WoWSQL. Vendor facts were checked on each vendor's own docs or pricing page on 24 November 2026.

Key facts

  • Firebase Storage needs the pay-as-you-go Blaze plan. No-cost usage covers 5 GB-months stored and 100 GB a month downloaded, only for buckets in us-central1, us-west1 or us-east1 (pricing). Security Rules tie file access to Firebase Auth (docs).
  • Supabase Storage: Free includes 1 GB and a 50 MB upload limit; Pro ($25/month) includes 100 GB, then $0.0213/GB. It has RLS policies, signed URLs, image transformations and an S3-compatible API (storage docs, pricing).
  • Cloudflare R2: $0.015/GB-month, no egress fees, 10 GB-month free (pricing).
  • AWS S3 Standard (us-east-1): $0.023/GB for the first 50 TB, plus $0.09/GB data transfer out for the first 10 TB beyond AWS's free tier (AWS price list, published 19–21 November 2026).
  • WoWSQL Storage: public and private buckets with optional size and MIME-type limits; upload, list, download and delete over the API; public files at /storage/v1/object/public/{bucket}/{path}. WoWSQL does not issue presigned URLs (storage docs). Free includes 512 MB of files, Pro 100 GB, Scale 500 GB (pricing).

What app file storage has to do

Before comparing prices, write down which of these your app actually needs. Most teams only need the first three on day one.

  1. Accept uploads from the client without routing every byte through your own server, with limits on size and file type.
  2. Decide who can read each file. Public assets (product photos, avatars) and private files (invoices, ID documents, chat attachments) need different treatment.
  3. Serve files fast to wherever your users are, which usually means a CDN in front of public files.
  4. Share private files temporarily, such as a download link that expires in an hour. This is what signed or presigned URLs are for.
  5. Transform images (thumbnails, WebP) without running your own image service.
  6. Keep the cost predictable when one file goes viral. Egress (data served), not storage, is usually the bill that surprises people.

The 6 options compared (24 November 2026)

Free allowance Paid entry Auth integration Expiring links for private files Delivery
Firebase Storage None on Spark; Blaze includes 5 GB-months and 100 GB/month downloads (US buckets only) Blaze, pay as you go Firebase Auth + Security Rules Download URLs created with the Admin SDK Google Cloud infrastructure
Supabase Storage 1 GB, 5 GB cached egress, 50 MB max upload Pro $25/month: 100 GB, then $0.0213/GB Postgres RLS policies Signed URLs Basic CDN on Free, Smart CDN on paid plans
Cloudflare R2 10 GB-month, 1M Class A and 10M Class B operations $0.015/GB-month, egress free None built in: your server signs requests Presigned URLs Cloudflare network
AWS S3 AWS Free Tier credits for new accounts $0.023/GB-month + $0.09/GB out IAM; app users handled by your code Presigned URLs Add CloudFront
Appwrite 2 GB storage, 5 GB bandwidth; paused after 1 week idle Start $10 (40 GB), Pro $25 (150 GB, 5 GB file limit) Appwrite bucket and file permissions File tokens, with optional expiry Appwrite Cloud regions; image transformations on Pro
WoWSQL Storage 512 MB files, 5 GB bandwidth Pro $25/month: 100 GB files, 100 GB bandwidth; extra storage from $0.25/GB, transfer $0.10/GB Project API key (anon or service); no per-user file rules documented Not available: use public buckets, or download private files with a key Public URLs may be cached at Cloudflare's edge (legal/storage)

Sources: Firebase pricing, Cloud Storage for Firebase; Supabase Storage, Supabase pricing; R2 pricing, R2 presigned URLs; S3 presigned URLs and the AWS public price list for S3 and data transfer in us-east-1; Appwrite pricing, Appwrite file tokens; WoWSQL storage docs, WoWSQL pricing.

Firebase Storage: best if you are already on Firebase

Cloud Storage for Firebase stores files in a Google Cloud Storage bucket. Its SDKs resume interrupted uploads and downloads, and Security Rules can allow access "based on filename, size, content type, and other metadata" for the signed-in Firebase user.

The catch for new projects is billing. On today's pricing page, Cloud Storage is "Not applicable" on the free Spark plan, so you need Blaze. Blaze includes 5 GB-months of storage and 100 GB of downloads a month, but only for buckets in three US regions. Buckets anywhere else pay Google Cloud Storage rates from the first byte.

Choose it if your auth and data are already on Firebase. Watch out for the Blaze requirement, and for the US-only no-cost quota if your users are in India or Europe.

Supabase Storage: the most complete BaaS storage

Supabase Storage keeps file metadata in Postgres, so access control is written as Row Level Security policies on the objects table. The docs list S3-compatible access, a REST API, resumable uploads, a global CDN, image optimisation and signed URLs for private buckets.

On price: Free includes 1 GB of files and 5 GB of cached egress, with a 50 MB upload limit. Pro is $25/month with 100 GB of files (then $0.0213/GB), 250 GB of cached egress (then $0.03/GB) and uploads up to 500 GB. Image transformations are paid-plan only: 100 origin images, then $5 per 1,000.

Choose it if you want per-user file rules written in SQL, expiring links and image resizing in one product. Watch out for free projects pausing after a week of inactivity.

Cloudflare R2: cheapest for heavy downloads

R2 is plain object storage with an S3-compatible API. It charges $0.015 per GB-month stored and per operation, and charges nothing for egress. The free tier covers 10 GB-month, 1 million Class A (write) and 10 million Class B (read) operations a month.

R2 doesn't know who your app users are. Your backend decides who may upload or download, then hands the client a presigned URL that allows one operation on one object until it expires.

Choose it for video, large downloads, public media libraries and anything where egress would dominate the bill. Watch out for building the access layer yourself. Read operations are still billed: Cloudflare's own asset-hosting example (100,000 small files read 10 million times a day) comes to $104.40 a month.

AWS S3: the default for teams already on AWS

S3 is the reference object store: lifecycle rules, storage classes, events and IAM. In us-east-1, S3 Standard costs $0.023/GB-month for the first 50 TB. Data transfer out to the internet costs $0.09/GB for the first 10 TB beyond the free tier. Like R2, it uses presigned URLs for temporary access, and you add CloudFront if you want a CDN.

Choose it if your infrastructure already lives in AWS, or you need S3 features such as lifecycle tiers. Watch out for egress costs on popular files, and the work of wiring IAM to your own user accounts.

Appwrite Storage: generous free storage, open source

Appwrite Storage comes with Appwrite's auth and bucket and file permissions, plus file tokens that share a file with someone outside your app and can expire on a date you set. On today's pricing page, Free includes 2 GB of storage and 5 GB of bandwidth (projects pause after a week of inactivity). Start ($10/month) includes 40 GB, and Pro ($25/month) includes 150 GB of storage, 2 TB of bandwidth, a 5 GB file size limit and 100 origin images a month of image transformations. Appwrite can also be self-hosted.

Choose it if you want an open-source BaaS with more included storage than most free tiers. Watch out for region choice: Appwrite Cloud lists Frankfurt, New York, Sydney, San Francisco, Singapore and Toronto, with Bangalore and London marked "coming soon" (regions).

WoWSQL Storage: buckets next to your Postgres

WoWSQL Storage sits in the same project as your database, auth and REST API, in the region you picked (Mumbai ap-south-1, US East us-east-1 or Frankfurt eu-central-1). This is what the storage docs and the @wowsql/sdk 3.10.0 package support today:

  • Buckets can be public or private. Public or private is a property of the bucket, not of each upload. Each bucket can have a file_size_limit and a list of allowed_mime_types.
  • Files: upload (multipart), list with a prefix, download, delete, plus usage stats.
  • Public files are served without auth at https://<project>.wowsqlconnect.com/storage/v1/object/public/{bucket}/{path}.
  • Private files are downloaded with a project API key. WoWSQL does not issue presigned URLs: the docs say the old S3 add-on routes now return 410 Gone, and SDK 3.10.0 has no signed-URL method.
  • Access is per project key, not per user. The storage docs don't describe per-user file policies, so treat any key you ship in a client as able to reach your storage API. For files that belong to one user, put a small server route in front (shown below).

On price, Free includes 512 MB of files and 5 GB of bandwidth, and the project goes read-only when you pass a limit. Pro ($25/month) includes 100 GB of files and 100 GB of bandwidth. Scale ($99/month) includes 500 GB of files. Extra usage on paid plans costs from $0.25/GB for storage and $0.10/GB for transfer, and you can set a spending limit.

The storage legal page adds two rules worth repeating: anyone with the URL can read a public object, and public URLs may be cached at the edge (including Cloudflare), so a deleted file may not vanish from every cache instantly.

How to store user uploads on WoWSQL

The pattern that works on any BaaS: files in a bucket, metadata in a table. The table holds the owner, path, size and type, and Row Level Security on that table decides who can find which file.

Step 1: Create buckets once, from a setup script

Run this on your machine or server with the service key, never in a client app:

import { WowSQLStorage } from '@wowsql/sdk'

const admin = new WowSQLStorage({
  projectUrl: 'myproject', // → https://myproject.wowsqlconnect.com
  apiKey: process.env.WOWSQL_SERVICE_KEY!, // wowsql_service_... server only
})

// Public: avatars anyone may view
await admin.createBucket('avatars', {
  public: true,
  fileSizeLimit: 2 * 1024 * 1024, // 2 MB
  allowedMimeTypes: ['image/png', 'image/jpeg', 'image/webp'],
})

// Private: documents only your server hands out
await admin.createBucket('documents', { public: false })

Step 2: A metadata table with RLS

create table public.user_files (
  id uuid primary key default gen_random_uuid(),
  user_id uuid not null,
  bucket text not null,
  path text not null,
  mime_type text,
  size_bytes bigint,
  created_at timestamptz not null default now()
);

alter table public.user_files enable row level security;

create policy "Users see own files"
  on public.user_files for select
  using (auth.uid() = user_id);

create policy "Users add own files"
  on public.user_files for insert
  with check (auth.uid() = user_id);

Step 3: Upload an avatar from the browser

This follows the TypeScript SDK docs: upload(bucket, file, path) sends the folder part of the path as a query parameter, and getPublicUrl() builds the public link. The metadata insert goes straight to the REST API with the user's access token. In SDK 3.10.0, WowSQLClient sends the API key as the bearer token, so a plain fetch with the user's JWT is how you get RLS to see the signed-in user.

import { WowSQLStorage, ProjectAuthClient } from '@wowsql/sdk'

const PROJECT = 'myproject'
const ANON_KEY = 'wowsql_anon_your_key_here'

const auth = new ProjectAuthClient({ projectUrl: PROJECT, apiKey: ANON_KEY })
const storage = new WowSQLStorage({ projectUrl: PROJECT, apiKey: ANON_KEY })

export async function uploadAvatar(file: File, userId: string) {
  const path = `${userId}/avatar.webp`
  const saved = await storage.upload('avatars', file, path, 'avatar.webp')

  // Record it as the signed-in user, so RLS applies
  const { accessToken } = auth.getSession()
  await fetch(`https://${PROJECT}.wowsqlconnect.com/rest/v1/user_files`, {
    method: 'POST',
    headers: {
      apikey: ANON_KEY,
      Authorization: `Bearer ${accessToken}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      user_id: userId,
      bucket: 'avatars',
      path: saved.path,
      mime_type: saved.mime_type,
      size_bytes: saved.size,
    }),
  })

  return storage.getPublicUrl('avatars', path)
}

The bucket's size and MIME-type limits from Step 1 are your guardrail here. Since storage calls are authorised by the project key, keep browser uploads for public, low-risk files such as avatars.

Step 4: Serve private documents through a server route

For invoices or ID documents, don't let the client talk to the private bucket. A small server route (any Node server, or a serverless function) checks the user's token, checks ownership in the metadata table, then streams the file with the service key:

import { WowSQLStorage, ProjectAuthClient } from '@wowsql/sdk'

const PROJECT = 'myproject'
const BASE = `https://${PROJECT}.wowsqlconnect.com`
const auth = new ProjectAuthClient({ projectUrl: PROJECT, apiKey: process.env.WOWSQL_ANON_KEY! })
const storage = new WowSQLStorage({ projectUrl: PROJECT, apiKey: process.env.WOWSQL_SERVICE_KEY! })

// GET /files/:id  with  Authorization: Bearer <user access token>
export async function getPrivateFile(fileId: string, accessToken: string) {
  await auth.getUser(accessToken) // GET /api/auth/me; throws if the token is invalid

  // Look the file up as the user: RLS only returns rows they own
  const res = await fetch(`${BASE}/rest/v1/user_files?id=eq.${fileId}&select=bucket,path,mime_type`, {
    headers: { apikey: process.env.WOWSQL_ANON_KEY!, Authorization: `Bearer ${accessToken}` },
  })
  const [row] = await res.json()
  if (!row || row.bucket !== 'documents') throw new Error('File not found')

  const bytes = await storage.download(row.bucket, row.path) // ArrayBuffer
  return { bytes, contentType: row.mime_type ?? 'application/octet-stream' }
}

Return the bytes with the right Content-Type, and add your own short-lived token scheme if you need shareable links. The service key never leaves the server.

What it costs: one worked example

Say your app stores 50 GB of user photos and serves 200 GB a month. List prices on 24 November 2026, ignoring request charges and taxes:

Option Rough monthly cost How
Cloudflare R2 about $0.60 (50 − 10 free) GB × $0.015; egress free
AWS S3 (us-east-1) about $19 50 GB × $0.023 + 200 GB × $0.09, before any free-tier allowance
Supabase Pro $25 100 GB files and 250 GB cached egress included
Appwrite Pro $25 150 GB storage and 2 TB bandwidth included
WoWSQL Pro about $35 $25 plan (100 GB files, 100 GB bandwidth) + 100 GB × $0.10 transfer, assuming file downloads count as bandwidth
Firebase (Blaze) Google Cloud Storage rates 5 GB-months and 100 GB downloads free in US buckets, the rest at Cloud Storage prices

The BaaS prices also include your database, auth and API. Raw object storage is cheaper per gigabyte but comes with none of that. A common mix is a BaaS for app data and small files, plus R2 for big media, with the R2 object keys stored in your Postgres table.

Where others are better than WoWSQL Storage

  • Expiring links: Supabase, R2, S3 and Appwrite can all give a client time-limited access to a private file, and Firebase can create download URLs from the Admin SDK. WoWSQL can't today, so you proxy private downloads through your server.
  • Per-user file rules: Supabase (RLS on storage objects) and Firebase (Security Rules) enforce per-user access inside storage itself. On WoWSQL you enforce it in your metadata table and server route.
  • Image transformations: Supabase and Appwrite list on-the-fly image transformations on paid plans. Plan to resize images before upload, or in your own function, on WoWSQL.
  • Bandwidth-heavy media: R2's zero egress fees beat every BaaS on video and large downloads.
  • Free storage: Appwrite Free (2 GB) and Supabase Free (1 GB) include more file storage than WoWSQL Free (512 MB).

WoWSQL's case is simpler: buckets in the same project and region as your Postgres database and auth, flat plans, and an open-source, self-hostable core (github.com/WoWSQL/WoWSQL, Apache 2.0).

Which storage for which app?

App Good fit Why
Profile photos and product images Your BaaS's public bucket (Supabase, WoWSQL, Appwrite, Firebase) Same project as your users; public URLs
Private documents (invoices, KYC files) Supabase or Firebase; WoWSQL behind a server route Per-user access and short-lived access
Video or large downloads Cloudflare R2 No egress fees
Already all-in on AWS S3 + CloudFront IAM, lifecycle rules, events
Mobile app on spotty networks Firebase SDKs resume interrupted uploads and downloads
Indian or EU users, small files, one bill WoWSQL in Mumbai or Frankfurt Files and data in the region you choose

Related guides

FAQ

What is the best file storage for a web or mobile app in 2026?

Use your backend's built-in storage for avatars, product images and other small files: Firebase Storage, Supabase Storage, Appwrite Storage or WoWSQL Storage. Use Cloudflare R2 or AWS S3 for large media or very high download volume. Pick Supabase or Firebase if you need per-user file rules and expiring links built in.

What is a good Firebase Storage alternative?

Supabase Storage is the closest match, with per-user rules (RLS), signed URLs and image transformations. Cloudflare R2 is cheaper for heavy downloads because it has no egress fees. WoWSQL Storage gives you public and private buckets next to a Postgres database on flat plans, but it has no presigned URLs, so private downloads go through your server.

Where should I store user uploads?

Store the file in object storage (a bucket) and its metadata (owner, path, size, type) in a database table. Protect the table with Row Level Security, use public buckets only for files anyone may see, and serve private files through signed links or a server route that checks ownership.

S3 vs Supabase Storage vs Firebase Storage: which should I use?

Use S3 if you are already on AWS and want raw object storage with IAM and lifecycle rules. Use Supabase Storage if you want Postgres RLS policies, signed URLs and an S3-compatible API in a BaaS. Use Firebase Storage if your app already uses Firebase Auth, and remember it needs the Blaze plan.

What is the cheapest storage for app images?

For raw storage and delivery, Cloudflare R2 is usually cheapest: $0.015 per GB-month with no egress fees and 10 GB-month free (24 November 2026). If you also need a database and auth, a flat BaaS plan such as Supabase Pro, Appwrite Pro or WoWSQL Pro, each $25/month, can cost less overall.

Does WoWSQL support presigned URLs?

No. As of 24 November 2026, WoWSQL Storage doesn't issue presigned or signed URLs; the old S3 add-on routes return 410 Gone. Use a public bucket for files anyone may see, and serve private files through your own server route that downloads them with a project key.

Create a free WoWSQL project · Pricing · Storage docs