PHP警告:8978294字节的POST内容长度超过了第0行中Unknown中的8388608字节的限制 [英] PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

查看:161
本文介绍了PHP警告:8978294字节的POST内容长度超过了第0行中Unknown中的8388608字节的限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的XAMPP本地开发环境上尝试在WordPress上上传导入时出现此错误:

警告:8978294字节的POST内容长度超过了第0行上未知"中的8388608字节的限制

我将upload_max_filesize2M更改为1000M,但这似乎无济于事.

有什么想法吗?

解决方案

8388608字节为8M,这是PHP中的默认限制.将php.ini中的post_max_size更新为更大的值.

upload_max_filesize设置用户在上传时可以上传的最大文件大小 post_max_size设置可以通过POST以某种形式发送的最大数据量.

因此,您可以将upload_max_filesize设置为1兆,这意味着用户可以上传的最大单个文件为1兆字节,但是如果post_max_size设置为5,则他们可以一次上传其中的5个文件. /p>

I am getting this error when trying to upload an import on WordPress on my XAMPP local dev environment:

Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0

I changed the upload_max_filesize from 2M to 1000M, but that didn't seem to do anything.

Any ideas?

解决方案

8388608 bytes is 8M, the default limit in PHP. Update your post_max_size in php.ini to a larger value.

upload_max_filesize sets the max file size that a user can upload while post_max_size sets the maximum amount of data that can be sent via a POST in a form.

So you can set upload_max_filesize to 1 meg, which will mean that the biggest single file a user can upload is 1 megabyte, but they could upload 5 of them at once if the post_max_size was set to 5.

这篇关于PHP警告:8978294字节的POST内容长度超过了第0行中Unknown中的8388608字节的限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆