Can I increase maxRequestLength of ASP.NET request for MVC Controller Action?
I have an MVC controller that accepts file and it can be very large. I increased maxRequestLength in web.config, but it is security issue and the best solution for me will be have increased request length only for Upload method. Is it possible?
I tried
<location path="UploadFile">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
<httpRuntime maxRequestLength="2097151"/>
</system.web>
</location>
But it didn't helped
Thank you.