tRPCttRPC
Powered by
squishycantaloupeS
tRPC•9mo ago•
1 reply
squishycantaloupe

Limit payload size on specific routes?

When using TRPC, is there a way to limit payload size on specific routes? E.g, for a route that accepts base64 encoded images, I would like to limit the maximum body size to 10mb.

For all other routes, I'd like to limit the maximum body size to 1mb.
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How to limit payload size?
aryzingAaryzing / ❓-help
3y ago
Inference on routes & procedures
epicmau5timeEepicmau5time / ❓-help
3y ago
Modify the payload before mutating
RyanRRyan / ❓-help
3y ago
Create user on the function mutate, with TRPC and Payload
jasonnpwJjasonnpw / ❓-help
2y ago