可以直接在网站根目录建一个web.config文件,web.config内容具体如下
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="102400000" />
</requestFiltering>
</security>
</system.webServer>
<system.web>
<httpRuntime executionTimeout="1800" />
</system.web>
</configuration>
或 IIS修改配置编辑器
设置上传文件大小限制。
点击下拉菜单节(S),选中system.webServer>security>requestFiltering
展开requestlimits,将maxAllowedContentLength的值设为102400000(即100m)
注:这样修改直接就能生效,无需重启iis或者服务器
http://jingyan.baidu.com/article/624e74594c678e34e8ba5aff.html
IIS 上传大小设置默认30M
猜你喜欢
转载自blog.csdn.net/liangyaomu/article/details/70142995
今日推荐
周排行