爱动漫建模

关注

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

爱动漫建模

关注

阅读 126

2022-12-07


问题描述

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值改大即可


相关推荐

夏侯居坤叶叔尘

Content-Length和Transfer-Encoding详解

夏侯居坤叶叔尘 192 0 0

WikongGuan

Composer 安装TP 6 ([Composer\Downloader\TransportException] Content-Length mismatch, receive)

WikongGuan 112 0 0

吓死我了_1799

php post raw

吓死我了_1799 74 0 0

醉东枫

PHP post请求

醉东枫 86 0 0

_刘彦辉

PHP POST Variable

_刘彦辉 31 0 0

青乌

post 请求 content-type的区别

青乌 100 0 0

杏花疏影1

Php://input 和 $_POST / $http_raw_post_data 区别

杏花疏影1 56 0 0

非衣所思

php://input与$_POST与$HTTP_RAW_POST_DATA

非衣所思 87 0 0

愚鱼看书说故事

php 模拟post 提交表单

愚鱼看书说故事 154 0 0

_铁马冰河_

PHP cURL GET and POST Examples

_铁马冰河_ 15 0 0

精彩评论(0)

0 0 举报