IIS上传文件大小限制和上传时间限制

1、打开某一发布网站的配置编辑器

2、设置上传时间限制

3、设置上传文件大小限制

另一种方法:

直接在网站根目录建一个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>
posted @ 2019-05-21 09:44  littlewrong  阅读(14130)  评论(0编辑  收藏  举报