Hi, I’m encountering an issue with uploading files to Supabase Storage using WeWeb.
What I’m trying to achieve:
I want to upload files (specifically PDFs in this case) from a WeWeb application to a Supabase Storage bucket.
How things are set up:
- I am using the WeWeb file upload component and have connected the Supabase plugin to my account
- I have a WeWeb workflow utilizing the “Storage upload file” action.
- I followed the official WeWeb documentation for this:
https://docs.weweb.io/workflows/actions/supabase/storage-upload-file.html
- My Supabase bucket is currently set to public for debugging purposes.
- The file appears correctly within the WeWeb file upload component and is accessible in the workflow node data before the upload step.
Steps to reproduce the issue:
- Use the WeWeb file upload component to select a file (e.g., a PDF).
- Trigger the workflow containing the Supabase “Storage upload file” action.
- Observe that the workflow test completes successfully.
- Navigate to the Supabase Storage bucket and confirm the file exists.
- Attempt to download the file directly from Supabase or access its public URL.
What I’ve already tried:
- Ensuring the Supabase bucket is public.
- Verifying the file is present in the WeWeb workflow context before upload.
- Confirming the workflow reports success.
- Checking the file does appear in the Supabase bucket list.
Where exactly I’m getting stuck:
When I try to download the file from Supabase or access its URL, I receive an error: “Error: Failed to load PDF document.” I also noticed that the file size shown in Supabase is only 15 bytes, which seems incorrect and suggests the file content isn’t being uploaded properly, even though the workflow reports success and the file entry is created.