问题描述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值改大即可