0
点赞
收藏
分享

微信扫一扫

PHP笔记:POST大小溢出,POST Content-Length exceeds the limit of


问题描述

ajax中post数据时,php服务器返回以下错误:
POST Content-Length of 6084956 bytes exceeds the limit of 1048576 bytes in …

原因

php.ini中post_max_size=8M, 因为上传了文件,所以超过了此大小

解决方案

将php.ini中post_max_size值改大即可


举报

相关推荐

0 条评论