Files
Stojan DimitrovskiandChris Chinchilla 93ba2a312c docs: indicate publishable key instead of anon in many examples (#37411)
* docs: indicate publishable key instead of anon in many examples

* replace your-anon-key to string indicating publishable or anon

* fix your_...

* apply suggestion from @ChrisChinchilla

Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com>

* Update keys in code examples

* Prettier fix

* Update apps/docs/content/guides/functions/schedule-functions.mdx

---------

Co-authored-by: Chris Chinchilla <chris@chrischinchilla.com>
2025-08-18 13:47:48 +02:00
..

Resumable Uploads with Supabase Storage and Uppy

This example shows how to use Supabase Storage with Uppy to upload files to Supabase Storage using the TUS protocol (resumable uploads).

Running the example

  • Create a supabase bucket from the Supabase UI
  • Add a policy to allow public uploads
    • e.g. CREATE POLICY "allow uploads" ON storage.objects FOR INSERT TO public WITH CHECK (bucket_id = 'your-bucket-name');
  • Open the index.html file and replace the following variables with your own:
const SUPABASE_ANON_KEY = '' // your project's anon key
const SUPABASE_PROJECT_ID = '' // your project ref
const STORAGE_BUCKET = '' // your storage bucket name
const BEARER_TOKEN = '' // your bearer token

Serve the index.html file locally (e.g. with Python Simple HTTP Server) and start uploading:

python3 -m http.server