How to increase the max upload file size in ASP.NET ?

asp.net

We can change the maximum upload size for a site by pasting the below code to web.config file.


<system.webServer>
        <security>
            <requestFiltering>
                <requestLimits maxAllowedContentLength="629145600"/>
            </requestFiltering>
        </security>
</system.webServer>

maxAllowedContentLength is in bytes not kilobytes.


About Annie

I've been working in Technical Section for over 10 years in a wide range of tech jobs from Tech Support to Software Testing. I started writing blog for my future reference and useful for all.
Posted in Windows