1. 程式人生 > >IIS上傳檔案大小限制和上傳時間限制

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>