2010-10-11 52 views

回答

8

此设置配置上传文件大小限制:

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

默认大小为30MB〜。

4

与设置你的web.config以下其中xxx为最大上传大小以KB为单位:

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

默认值是4096(= 4 MB)。 MSDN documentation

1

阅读this博客文章,你会发现什么是最大长度,以及如何提高其极限

+8

感谢亚历克斯,但你所提供的链接是我自己的博客:) – 2011-02-02 19:22:05

相关问题