laravel 警告:POST Content-Length of 90612004 bytes 超出了 Unknown on line 8388608 bytes 的限制

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/38968599/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 14:19:02  来源:igfitidea点击:

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

phplaravel

提问by Mohammad Reza

I got this error

我收到这个错误

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

警告:POST Content-Length of 90612004 bytes 超出了 Unknown on line 8388608 bytes 的限制

I've done some searches and I changed post_max_sizeand upload_max_filesizeto 150M and reset Wamp but STILL I get this error what should I do?

我做了一些搜索和我改变post_max_size,并upload_max_filesize以150M和重置WAMP但我仍然得到这个错误我该怎么办?

回答by Nomura Nori

There are 2 way to fix.

有2种方法可以修复。

First - change php.ini file information. enter image description here

首先 - 更改 php.ini 文件信息。 在此处输入图片说明

set configurations as following.

设置配置如下。

   post_max_size=100M
   upload_max_filesize=100M

Second - use .htaccess file.

第二 - 使用 .htaccess 文件。

   php_value upload_max_filesize 100M
   php_value post_max_size 100M