Uploading files to Supabase Storage
This example demonstrates how to upload files to Supabase Storage using Trigger.dev.
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
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
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.
Task examples with code you can copy and paste
Was this page helpful?