Next.js Discord

Discord Forum

POST https://[my_url]/api/upload 413 (Payload Too Large)

Unanswered
Goldstripe sardinella posted this in #help-forum
Open in Discord
Goldstripe sardinellaOP
Hi guys, I am currently trying to create an api path that allow user to upload files like a pitch deck. these files often have a file size between 5Mb to 10Mb. WHen it exceed 4Mb, I observe that I often have the error POST https://[my_url]/api/upload 413 (Payload Too Large) when trying to deploy to vercel (but not while developing). How can I overcome the issue? Thank you!

1 Reply