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

14 Replies, 1521 Views

Wow, thanks everyone! Didn’t realize I could skip the file step entirely and just use the buffer. Tried the `page.pdf()` + direct upload approach, and it worked!

One follow-up: What’s the best way to handle errors if the upload fails? Should I retry or just log it?

Also, big thanks for the RLS reminder—totally forgot to check that. You all saved me hours of headache!

Messages In This Thread



Users browsing this thread: 1 Guest(s)