[b]"How can I use Puppeteer to upload a PDF to Supabase?"[/b] or [b]"Best way to upload a PDF to Supabase using Pu

14 Replies, 1207 Views

Yo! Supabase doesn’t handle Puppeteer’s file upload the same way as a browser form. Try this:

1. Save the PDF locally first.
2. Use `fs.readFileSync` to get the buffer.
3. Upload via Supabase JS client.

Bonus: If you’re dealing with large files, chunking might help. Let me know if you need the chunking code!

Messages In This Thread



Users browsing this thread: 1 Guest(s)