How to increase maxRequestLength for each controller in WebApi

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

Is it possible to increase the maxRequestLength value for a service or controller instead of modifying Web.Config?

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

If it cannot be software, it can be executed in Web.Config, but can it be focused only for some controllers?

+4
source share

All Articles