简体   繁体   English

PHP警告:53160843字节的POST内容长度超过了行0上“未知”中的33554432字节的限制

[英]PHP Warning: POST Content-Length of 53160843 bytes exceeds the limit of 33554432 bytes in Unknown on line 0

I got a small problem. 我有一个小问题。 When I try to uploads some big size images I get above error. 当我尝试上传一些大尺寸图像时,出现上述错误。 But If I try to upload same size images using Drag and Drop method, I can upload all files. 但是,如果尝试使用拖放方法上传相同尺寸的图像,则可以上传所有文件。 I have checked some similar solved problems. 我检查了一些类似的已解决问题。 But could not understand how can I check and modify php.ini file. 但是不明白如何检查和修改php.ini文件。 How can I solve this problem? 我怎么解决这个问题? I am using Mac OS and MAMP Server. 我正在使用Mac OS和MAMP Server。

line no:770 to change php.ini 行号:770更改php.ini

post_max_size = 1000M post_max_size = 1000M

refer: 参考:

PHP post_max_size overrides upload_max_filesize PHP post_max_size会覆盖upload_max_filesize

Change or add the post_max_size and upload_max_filesize fields in the applicable php.ini file eg 在适用的php.ini文件中更改或添加post_max_sizeupload_max_filesize字段,例如

post_max_size = 100M
upload_max_filesize = 100M

You can find the location of the file by creating a PHP file with contents: 您可以通过创建一个包含以下内容的PHP文件来找到文件的位置:

<?php echo phpinfo(); ?>

Then restart your server, navigate to the page in your browser and search for the Loaded Configuration File value. 然后重新启动服务器,导航到浏览器中的页面,并搜索“ Loaded Configuration File值。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 PHP 警告:未知:68 字节的 POST 内容长度超过第 0 行未知中 10 字节的限制, - PHP Warning: Unknown: POST Content-Length of 68 bytes exceeds the limit of 10 bytes in Unknown on line 0, PHP警告:POST内容 - n个字节的长度超过了第0行的Unknown中的3145728个字节的限制 - PHP Warning: POST Content-Length of n bytes exceeds the limit of 3145728 bytes in Unknown on line 0 无法解决:PHP警告:POST Content-Length的13110857字节超出了第0行上Unknown中的10485760字节的限制 - Cannot solve: PHP Warning: POST Content-Length of 13110857 bytes exceeds the limit of 10485760 bytes in Unknown on line 0 PHP 警告:8978294 字节的 POST 内容长度超出第 0 行未知中 8388608 字节的限制 - PHP Warning: POST Content-Length of 8978294 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 警告:POST Content-Length的25447804字节超出了第0行上Unknown中的8388608字节的限制 - Warning: POST Content-Length of 25447804 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 PHP 警告:113 字节的 POST 内容长度超出未知中 -1988100096 字节的限制 - PHP Warning: POST Content-Length of 113 bytes exceeds the limit of -1988100096 bytes in Unknown 警告:90612004 字节的 POST Content-Length 超出了第 0 行未知中 8388608 字节的限制 - Warning: POST Content-Length of 90612004 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 如何避免:警告:POST内容长度47820076字节超过了第0行的Unknown中的8388608字节限制 - How to avoid: Warning: POST Content-Length of 47820076 bytes exceeds the limit of 8388608 bytes in Unknown on line 0 POST Content-Length of 51110424 bytes 超出了 Unknown on line 0 中 41943040 字节的限制 - POST Content-Length of 51110424 bytes exceeds the limit of 41943040 bytes in Unknown on line 0 PHP 警告:8412174 字节的 POST Content-Length 超出了 Unknow 中 8388608 字节的限制 - PHP Warning: POST Content-Length of 8412174 bytes exceeds the limit of 8388608 bytes in Unknow
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM