文件上传大小被限制的解决方案。

时间:2014-05-01 14:12:07   收藏:0   阅读:312

修改配置文件Web.config

 

<httpRuntime targetFramework="4.5" maxRequestLength="2147483640" executionTimeout="300" />
mamicode.com,码迷
<system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true" />
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="2147483647"></requestLimits>
      </requestFiltering>
    </security>
  </system.webServer>
mamicode.com,码迷

 

文件上传大小被限制的解决方案。,码迷,mamicode.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!