首页 > 代码库 > IIS文件上传限制

IIS文件上传限制

HttpException (0x80004005): 超过了最大请求长度。

MaxRequestLength单位KB,最大值2147483647(int32)最大值

<httpRuntime maxRequestLength="2147483647" executionTimeout="2147483647" />

<compilation debug="false"/>

<system.webServer>

    <security>

      <requestFiltering>

        <requestLimits maxAllowedContentLength="4294967295" />

      </requestFiltering>

      </security>

</system.webServer>

HTTP Error 404.13 - Not Found

Web 服务器上的请求筛选被配置为拒绝该请求,因为内容长度超过配置的值。

确认 applicationhost.config 或 web.config 文件中的 configuration/system.webServer/security/requestFiltering/requestLimits@maxAllowedContentLength 设置。

IIS文件上传限制