Too big POST data. Reduce the data or increase the “post_max_size”

╄→尐↘猪︶ㄣ 提交于 2019-12-07 16:23:14

问题


I'm trying to upload a gzipped Mysql backup (71,2mb) through Adminer and it throws me this error:

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

Even though my post_max_size and other php.ini settings is like this:

post_max_size = 1024M
upload_max_filesize = 1024M

Why do i keep getting this error?


回答1:


Don't only check values in php.ini, as they can be overwritten by a .htaccess file or in PHP code. Run a phpinfo() and compare values in left & right column. The values in the right column are those actually in use.

Also take the notes from the documentation into account:

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.

So, you might also need to change memory_limit:

memory_limit > post_max_size > upload_max_filesize


来源:https://stackoverflow.com/questions/18441083/too-big-post-data-reduce-the-data-or-increase-the-post-max-size

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!