π Supabase storage tutorial: Upload, fetch, sign & list files
β‘ 903 views Β· π File Management
Description
Learn Supabase Storage Fundamentals with n8n
This template demonstrates how to integrate Supabase Storage with n8n for uploading, fetching, generating temporary signed URLs, and listing files. Itβs a beginner-friendly workflow that helps you understand how to connect Supabaseβs storage API with n8n automation.
Who itβs for
- Developers and teams new to Supabase who want a hands-on learning workflow.
- Anyone looking to automate file uploads and retrieval from Supabase Storage.
- Educators or technical teams teaching Supabase fundamentals with practical demos.
How it works
- Upload File β A user uploads a file through an n8n form, which gets stored in a Supabase storage bucket.
- Fetch File β Retrieve files by providing their filename.
- Temporary Access β Generate signed URLs with custom expiry for secure file sharing.
- List Objects β View all stored files in the chosen Supabase bucket.
How to set up
- Create a Supabase account and set up a project.
- Create a bucket in Supabase (e.g.,
test-n8n). - Get your Project URL and Anon Key from Supabase.
- In n8n, create a Supabase API Credential using your keys.
- Import this workflow and connect it with your credentials.
- Run the forms to test file upload, retrieval, and listing.
Requirements
- A Supabase project with storage enabled.
- A configured Supabase API Credential in n8n.
Customization
- Change the bucket name (
test-n8n) to your own. - Adjust signed URL expiry times for temporary file access.
- Replace Supabase with another S3-compatible storage if needed.
- Extend the workflow with notifications (Slack, Email) after file upload.
π Lessons Included
- Lesson 1 β Upload file to Supabase storage.
- Lesson 2 β Fetch file from storage.
- Lesson 3 β Create a temporary signed document with expiry.
- Lesson 4 β List all items in Supabase storage.
π Prerequisites
- Supabase account + project.
- Project URL and API Key (Anon).
- Bucket created in Supabase.
- Policy created to allow read/write access.
- n8n with Supabase API credentials configured.
π Nodes Used
HTTP Request, n8n Form Trigger
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File