windows server 2008 IIS 7.5 maximum file accept limit

冷暖自知 提交于 2019-12-05 05:56:25

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

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!