gpt4 book ai didi

php - POST Content-Length 167289889 字节超过 41943040 字节的限制

转载 作者:行者123 更新时间:2023-12-04 08:10:48 28 4
gpt4 key购买 nike

我在上传 pdf 文件时收到此消息,并在 php .ini 中更改了以下值

post_max_size=5000M

upload_max_filesize=1000M

max_file_uploads=1000M

并在 php 文件中:
ini_set('upload_max_filesize', '600M');
ini_set('post_max_size', '600M');
header("Content-length: 167289889");

但我仍然收到此错误:
POST Content-Length of 167289889 bytes exceeds the limit of 41943040 bytes

php v:7.4.11

最佳答案

您还应该检查您的 apache 配置、httpd.conf 或 apache.conf 或您可能用于以下属性的其他一些 *.conf 文件

LimitRequestBody
通常它设置为 0,这是无限制的,但在您的服务器上它可能有自己的限制

关于php - POST Content-Length 167289889 字节超过 41943040 字节的限制,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65972420/

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