1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > 文件上传:(413) Request Entity Too Large

文件上传:(413) Request Entity Too Large

时间:2023-05-12 05:03:04

相关推荐

文件上传:(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>

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。