gpt4 book ai didi

web-config - web.config : maxRequestLength not taking effect

转载 作者:行者123 更新时间:2023-12-04 14:01:10 26 4
gpt4 key购买 nike

我的 web.config 文件中有以下设置。

<httpRuntime executionTimeout="90000" maxRequestLength="204800" />

但是我无法上传任何大于 50MB 的文件。可能是什么原因。 Web 浏览器继续等待上传完成,但任何小于 50MB 的文件都可以毫无问题地上传。还有其他需要我检查的吗?

最佳答案

把它放在你的 web.config 中

  <system.web>
<httpRuntime executionTimeout="360" maxRequestLength="100000" />

这会启用 360 秒超时和一次 100,000 Kb 的上传数据。

如果这不起作用,请在您的 IIS 服务器上运行此命令。 (替换 [IIS 网站名称])

C:\Windows\System32\inetsrv>appcmd set config "[IISWebsitename]" -section:requestFiltering -requestLimits.maxAllowedContentLength:100000000 -commitpath:apphost

一次可以上传 100,000,000 字节的数据。

关于web-config - web.config : maxRequestLength not taking effect,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1696117/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com