I have a Web API which uploads images and videos to Azure. I want to limit image size to 5 MG and videos to 100 MG but I Tried Web.config Maximum value but I don't know how to apply it on Videos and images where I need different sizes.
<system.web>
<httpRuntime maxRequestLength="5000" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="5000" />
</requestFiltering>
</security>
</system.webServer>
Thanks