IIS+PHP上传文件大小限制和上传时间限制,iis7和iis8上传文件大小限制和上传时间限制
先说IIS这边的配置
点击下拉菜单节(S),选中system.webServer>security>requestFiltering
展开requestlimits,将maxAllowedContentLength的值设为102400000(即100m)
注:这样修改直接就能生效,无需重启iis或者服务器。
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.htm" />
<add value="index.html" />
<add value="index.php" />
<add value="iisstart.htm" />
<add value="default.aspx" />
</files>
</defaultDocument>
<staticContent>
<mimeMap fileExtension=".mp4" mimeType="application/octet-stream" />
</staticContent>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="202400000" />
</requestFiltering>
</security>
</system.webServer>
<system.web>
<httpRuntime executionTimeout="1850" />
</system.web>
</configuration>
在来设置PHP.ini这边的配置