ajax上传大附件报错:413 Request Entity Too Large

Web.config添加如下代码:

<system.web>
    <httpRuntime  maxRequestLength="1048567" executionTimeout="3600" />

    ...
</system.web>
<system.webServer>
    <security>
        <requestFiltering>
            <requestLimits maxAllowedContentLength="1048567" />
        </requestFiltering>
    </security>

    ...
</system.webServer>
上一篇:EF Core 搭建单侧环境


下一篇:orm数据库