Overview
This example shows how to upload a video file to Supabase Storage using two different methods.- Upload to Supabase Storage using the Supabase client
- Upload to Supabase Storage using the AWS S3 client
Upload to Supabase Storage using the Supabase client
This task downloads a video from a provided URL and uploads it to Supabase Storage using the Supabase client.Task code
trigger/supabase-storage-upload.ts
Testing your task
To test this task in the dashboard, you can use the following payload:Upload to Supabase Storage using the AWS S3 client
This task downloads a video from a provided URL, saves it to a temporary file, and then uploads the video file to Supabase Storage using the AWS S3 client.Key features
- Fetches a video from a provided URL
- Uploads the video file to Supabase Storage using S3
Task code
trigger/supabase-storage-upload-s3.ts
To learn more about how to properly configure Supabase auth for Trigger.dev tasks, please refer to
our Supabase Authentication guide. It demonstrates
how to use JWT authentication for user-specific operations or your service role key for
admin-level access.
Testing your task
To test this task in the dashboard, you can use the following payload:Learn more about Supabase and Trigger.dev
Full walkthrough guides from development to deployment
Edge function hello world guide
Learn how to trigger a task from a Supabase edge function when a URL is visited.
Database webhooks guide
Learn how to trigger a task from a Supabase edge function when an event occurs in your database.
Supabase authentication guide
Learn how to authenticate Supabase tasks using JWTs for Row Level Security (RLS) or service role
keys for admin access.