Vercel Blob Storage Plugin client upload only files under 4,5 mb possible to upload #7569
Replies: 21 comments 10 replies
-
Hey @christianfullstack — are you deploying on Vercel? I know the 4.5mb thing is a Vercel limitation, but I'd like to confirm. We do indeed have plans to switch to client-side uploads so I have added this to our Roadmap! |
Beta Was this translation helpful? Give feedback.
-
@jmikrut roughly how far out is this feature? We are close to deploying a larger project and this issue would prevent us from hosting it on Vercel sadly. |
Beta Was this translation helpful? Give feedback.
-
Yea, we have had some problems because of that too. Deployed 3 projects with 3.0 on Vercel so far with 2 more in active development and this is the biggest complaint from the clients. It is hard to communicate to them, that they have to downsize their images before uploading them to their CMS. We're using S3 tho, so would be really nice if this feature would be available there too. |
Beta Was this translation helpful? Give feedback.
-
is there an update on this? using s3/supabase, mono repo deployed to vercel. seems to defeat the purpose of the monorepo |
Beta Was this translation helpful? Give feedback.
-
I'm also using Vercel + Supabase, wish I had known about this limitation before building the whole CMS for a customer. Is there still no update in regards to this, @jmikrut ? |
Beta Was this translation helpful? Give feedback.
-
Do we have any updates on this? |
Beta Was this translation helpful? Give feedback.
-
I was just looking at this today and was able to get a direct upload to S3 working. The downside is that it skips all of payloads image processing such as cropping or splitting up the image into different resolutions. One option would be to process the images after the initial upload with a kind of worker. This would need to happen off Vercel, as else the 4.5MB Limit would also kick in there. @jmikrut Did you decide on how to handle this? I'm happy to contribute an implementation for this! |
Beta Was this translation helpful? Give feedback.
-
Any updates on this? I have same problem on s3 bucket deployed with vercel |
Beta Was this translation helpful? Give feedback.
-
Are there any updates? |
Beta Was this translation helpful? Give feedback.
-
Would love to hear updates :) |
Beta Was this translation helpful? Give feedback.
-
ditto :) |
Beta Was this translation helpful? Give feedback.
-
sadly wandered upon this issue like everyone else :( would really appreciate client-side upload—i think it could make sense if it uploads the main object directly to the bucket first. |
Beta Was this translation helpful? Give feedback.
-
Same issue here, I am trying to upload mp3 and mp4 files which are very often above the 4.5 Mb limitation. I am quite surprised to discover this once it's in production: it's not mentioned anywhere in the doc and it seems like a real pity :/ |
Beta Was this translation helpful? Give feedback.
-
Would "resumable uploads" be a viable path? I'm not too savy on the subject but Supabase did this |
Beta Was this translation helpful? Give feedback.
-
Would love to have this feature. Any news on the state here? |
Beta Was this translation helpful? Give feedback.
-
Just to add a note: I'm running into a similar issue but on AWS using open-next. |
Beta Was this translation helpful? Give feedback.
-
Is there any update on client uploads? Wish I have come across this discussion earlier :( |
Beta Was this translation helpful? Give feedback.
-
Want to also voice how frustrating this issue is. We've launched several projects with payload over the last year, and this has been a problem on literally every single one of them. It's embarrassing to explain to clients in 2025 that we can only support 4.5MB video uploads. |
Beta Was this translation helpful? Give feedback.
-
My solution was to host Payload on a VPS (like DigitalOcean, Hetzner, Linode, etc.) using Coolify. You could call it "self-hosted" but Coolify takes care of most of the headaches in that department. My client can now upload files of any size and the server only costs around $10/mo. Hosting on Vercel is extremely convenient but limitations like this are a no-go. I will add that this issue should be added to the docs until it's resolved. It's not the best feeling to have to switch hosting platforms right before launch while on a deadline. |
Beta Was this translation helpful? Give feedback.
-
The PR is here - #11382. |
Beta Was this translation helpful? Give feedback.
-
Hi Amazing work. Is it possible we could get a tiny bit of guidance on how to allow CORS on Vercel Blob? I have added the following policy in my next config to no avail
This could be a good start of documentation on the Payload docs website. |
Beta Was this translation helpful? Give feedback.
-
EDIT: Available in v3.25.0
🎉 🎉 🎉 🎉 Now available in https://github.com/payloadcms/payload/releases/tag/v3.25.0
Link to reproduction
No response
Payload Version
v3.0.0-beta.73
Node Version
20.9.0
Next.js Version
15.0.0-canary.83
Describe the Bug
at the moment the @payloadcms/storage-vercel-blob allows only uploads smaller than 4,5mb.
Could we switch to client upload to allow bigger filesizes ? I think we need the client upload.
https://vercel.com/docs/storage/vercel-blob/client-upload#client-uploads-with-vercel-blob
because this limit is not useful in the case of using vercel blob storage.
upload: { limits: { fileSize: 30000000, }, },
Thank you
Reproduction Steps
use @payloadcms/storage-vercel-blob and try to upload a file bigger than 5 mb.
Adapters and Plugins
storage-vercel-blob
Beta Was this translation helpful? Give feedback.
All reactions