简体   繁体   中英

windows server 2008 IIS 7.5 maximum file accept limit

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

This setting configures the upload file size limit:

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

Default size is ~30Mb.

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

阅读博客文章,您将了解最大长度以及如何增加其限制

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM