HostOnNet Blog

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

Looking for Linux Server Admin or WordPress Expert? We can help.

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.