IIS WEB服务器文件上传:(413) Request Entity Too Large

广告:

一台客户服务器:IIS中上传文件提示:(413) Request Entity Too Large
但Web.Config中已经设置了文件大小,上传的文件也远小于设置的大小。

最终解决方案:
编辑C:\Windows\System32\inetsrv\config下的applicationHost.config文件,找到自己项目的location项,在system.webServer下添加如下代码:

<serverRuntime uploadReadAheadSize="104857600" />

uploadReadAheadSize单位为(B:bytes),这里104857600 = 100M,实际大小按需求设置。

<location path="EMWeb">
 <system.webServer>
 <serverRuntime uploadReadAheadSize="104857600" />
 </system.webServer>
</location>

或者临时解决办法:重启服务器或者重启后台即可。

广告:

编辑:Admin 时间:2022/10/10 9:57:01 阅览:485   返回    
Request Entity Too Large
413
扫描关注53BK报刊官网
扫描关注阅速公司微信