Supabase Functions - trigger when a file uploaded into Storage bucket

31 views Asked by At

I'm looking to create a "pipeline" to manipulate a user's file uploads from a form in my Next.js application.

The files are uploaded into a bucket called user_uploads

I want a Supabase function (very originally named onFileUploadedToUserUploadsBucket()) to be "triggered" when a new file lands in this bucket (files in this bucket will then be processed and moved into another bucket).

How do I get my function to automatically trigger when files are uploaded into a bucket? I can't seem to find any examples of this behaviour in the GitHub repo.

0

There are 0 answers