<configuration>
    <system.web>
        <httpRuntime maxRequestLength="102400" /> <!-- 设置为所需的大小,例如 100MB 对应的大小是 102400KB -->
    </system.web>
</configuration>
<system.webServer>
&lt;security&gt;
    &lt;requestFiltering&gt;
        &lt;requestLimits maxAllowedContentLength="10485760" /&gt; &lt;!-- 设置为所需的字节数,例如 10MB 对应的字节数为 10485760 --&gt;
    &lt;/requestFiltering&gt;
&lt;/security&gt;

</system.webServer>

发表评论