How can I use Puppeteer to upload a PDF to Supabase? or Best way to upload a PDF to Supabase using Pu

14 Replies, 1575 Views

Hey! Had this exact puppeteer upload pdf to supabase problem. Turns out, Supabase expects raw bytes, not a file path.

Try this:
- Generate PDF with `page.pdf()`.
- Convert to Blob or use the buffer directly.
- Upload with `supabase.storage.upload()`.

Also, double-check your RLS policies if it’s still failing.

Messages In This Thread



Users browsing this thread: 1 Guest(s)