6

I have deployed my application on IIS 7.5 on windows server 2008 operating system and i want to know what is the maximum file upload limit and how to increase that limit? Im working on asp.net mvc2

Fraz Sundal
  • 10,288
  • 22
  • 81
  • 132

3 Answers3

8

This setting configures the upload file size limit:

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

Default size is ~30Mb.

Merrimack
  • 1,736
  • 14
  • 12
4

Set your web.config with the following where xxx is the max upload size in kilobytes:

<configuration>
  <system.web>
    <httpRuntime maxRequestLength="xxx" />
  </system.web>
</configuration>

The default is 4096 (= 4 MB). MSDN documentation

Jace Rhea
  • 4,982
  • 4
  • 36
  • 55
1

Read this blog post and you will find out what is the maximum length and how to increase its limit

alex
  • 19
  • 2