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.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?