I was wondering whether it is possible to define web.config
settings specifically for certain URLs.
For example:
Let's say I have an MVC4 web site with a bunch of controllers and actions, one of which allows uploading a large file (max. 50MB). By default, the maxRequestLength
is 4MB. In web.config
one would then add the following rule:
<httpRuntime maxRequestLength="51200" />
However, this means that the request length is now 50MB for every action on the website. Is it possible to make custom settings for specific URLs?