IIS7上传大文件的方法

因为IIS7它不支持大块文件上传,会出现IO ERROR错误,所以需要把它的配置改下
c:\Windows\System32\inetsrv\config\schema
用记事本打开 IIS_schema.xml
查找 <attribute name="maxAllowedContentLength" type="uint" defaultValue="30000000" />
30000000这里是指30M
把这个值改大,然后在上传的站点中配置WEB.CONFIG
<httpRuntime maxRequestLength="2097151" executionTimeout="5000000" />
这样就可以上传大块文件了
原文地址:https://www.cnblogs.com/Leung/p/1551507.html