Skip to main content

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

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

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

Supabase database operations

Run basic CRUD operations on a table in a Supabase database using Trigger.dev.

Supabase Storage upload

Download a video from a URL and upload it to Supabase Storage using S3.