.NET文件上传的大小限制配置

<system.web>
  <!--maxRequestLength单位是Kb-->
  <httpRuntime maxRequestLength="2097152" executionTimeout="3600" />
</system.web>
<system.webServer>
  <security>
    <requestFiltering>
      <!--IIS7的设置,maxAllowedContentLength单位是Bytes--> 
      <requestLimits maxAllowedContentLength="2147483648" />
    </requestFiltering>
  </security>
</system.webServer>
web

相关文章
相关标签/搜索