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.
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.
