[英]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_size
和upload_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.