Next.js Discord

Discord Forum

Is there a limit size for uploading on app deployed on Vercel?

Answered
Rex posted this in #help-forum
Open in Discord
RexOP
I built a file storage app with nextjs where users can store their files (audio, video etc). But when deployed on vercel, I can only uplaod files which size is lower than 4mo, for example if I try to upload an audio of 5mo I get a POST erorr 413 (Payload Too Large)
Answered by B33fb0n3
yes, there are limits from vercel itself. 4.5mb are max. allowed.

How to solve this?
Instead of having this:
Client ---- Uploads --- > NextJs Server -> File Storage Server

Make it like this:
Client ---- Uploads --- > File Storage Server

Like that you still upload it and you won't have the limit from vercel itself
View full answer

3 Replies

@Rex I built a file storage app with nextjs where users can store their files (audio, video etc). But when deployed on vercel, I can only uplaod files which size is lower than 4mo, for example if I try to upload an audio of 5mo I get a `POST erorr 413 (Payload Too Large)`
yes, there are limits from vercel itself. 4.5mb are max. allowed.

How to solve this?
Instead of having this:
Client ---- Uploads --- > NextJs Server -> File Storage Server

Make it like this:
Client ---- Uploads --- > File Storage Server

Like that you still upload it and you won't have the limit from vercel itself
Answer
RexOP
thanks
happy to help