How to increase maxRequestLength per Controller in WebApi

3.8k Views Asked by At

I found the same question here since 2012, but I want to launch again the question.

Is it possible to increase the maxRequestLength per service or controller instead of changing the Web.Config?

<system.web>
  <httpRuntime maxRequestLength="10240"/>
</system.web>

If it can't be programmatically, can be done in the Web.Config but it can be focused only for some Controllers?

0

There are 0 best solutions below