Max request body limit increase?

Hey! I currently run a site that provides file upload services. I'm interested in migrating to Cloudflare Workers and R2, but I'm hitting issues with the 100 MB Workers request limit. I understand that generally the best practice is to send a signed URL, but unfortunately I need to maintain backwards compatibility with the multitude of existing clients for my API — which expects a multipart upload. Most (>99%) requests are under the 100 MB limit, but the occasional one is multi-GB. Is there any possibility to increase my request size limit to 10 GB for those sporadic requests? I would love to see what Cloudflare has to offer here, and it sucks being blocked by something so trivial! Thanks so much.
9 Replies
kognise
kogniseOP2w ago
FWIW, I would be happy with any alternative, e.g. some way to proxy just one route to my own server, as I migrate users away from the old system.
Chaika
Chaika2w ago
It's a cdn limit, not a workers limit
Free - 100 MB Pro - 100 MB Business - 200 MB Ent - 500+ MB Customers can reduce the Maximum Upload Size from the zone's Network page. If you require a larger upload, you can group requests into smaller chunks, upload the full resource through an unproxied (grey-clouded) DNS record or upgrade your plan.
https://developers.cloudflare.com/cache/concepts/default-cache-behavior/ can't be per route with the way DNS works, would have to be a different unproxied subdomain
kognise
kogniseOP2w ago
Yes I assumed, just didn't know if there was some weird workaround. Interesting — these docs are for caching, why would that apply to Workers?
Chaika
Chaika2w ago
It's a CDN-level limit, and pretty much everything including Workers is behind CDN as for why it's on the cache document idk lol, just been there forever
kognise
kogniseOP2w ago
oh I see, so any orange-bubbled site would have this same issue I presume?
Chaika
Chaika2w ago
Yup
kognise
kogniseOP2w ago
that sucks do you know if there's any way to get it increased, either way?
Chaika
Chaika2w ago
Other then upgrading plans, Enterprise can ask for higher limits There's been some interesting work recently with Cloudflare redoing their core request processing layer https://blog.cloudflare.com/20-percent-internet-upgrade/, and now uploads are streamed rather then fully buffered at edge (which was at least partially the justification before for limits), hoping we see higher limits sometime..
kognise
kogniseOP2w ago
Oh, that's very cool Well, I don't think Enterprise makes sense for us yet, so it's an annoying in-between state. And setting up my own global anycast network is maybe a bit more than I feel like doing. If there is a way to see higher limits I'm always happy to guinea pig

Did you find this page helpful?