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

14 Replies, 1345 Views

Supabase + Puppeteer can be tricky for file uploads. Instead of `uploadFile()`, I used `page.pdf()` to get the buffer and then:

```javascript
const { error } = await supabase
.storage
.from('pdfs')
.upload('doc.pdf', await page.pdf());
```
If you’re still stuck, maybe try logging the error object? Might give you a clue.

Messages In This Thread



Users browsing this thread: 1 Guest(s)