gpt4 book ai didi

php - POST 数据太大。减少数据或增加 "post_max_size"

转载 作者:可可西里 更新时间:2023-11-01 07:59:06 27 4
gpt4 key购买 nike

我正在尝试通过 Adminer 上传一个 gzip 压缩的 Mysql 备份 (71,2mb),它抛出了这个错误:

Too big POST data. Reduce the data or increase the "post_max_size" configuration directive.

即使我的 post_max_size 和其他 php.ini 设置是这样的:

post_max_size = 1024M
upload_max_filesize = 1024M

为什么我总是收到这个错误?

最佳答案

不要只检查 php.ini 中的值,因为它们可以被 .htaccess 文件或 PHP 代码覆盖。运行 phpinfo() 并比较左列和右列中的值。右栏中的值是实际使用的值。

同时记下 documentation 中的笔记考虑到:

Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize. If memory limit is enabled by your configure script, memory_limit also affects file uploading. Generally speaking, memory_limit should be larger than post_max_size.

因此,您可能还需要更改 memory_limit:

memory_limit > post_max_size > upload_max_filesize

关于php - POST 数据太大。减少数据或增加 "post_max_size",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18441083/

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