[英]uploading files greater than 8 mb in php
Warning: POST Content-Length of 11313557 bytes exceeds the limit of 8388608 bytes
警告:POST Content-Length为11313557字节超过了8388608字节的限制
I am getting this above warning. 我收到了上述警告。 I searched around internet and I have also increased the the following limits in php.ini:
我搜索了互联网,我也增加了php.ini中的以下限制:
max_input_time = 600000;
max_execution_time = 60000000;
file_uploads = On;
upload_max_filesize = 1000M;
post_max_size = 1000M;
and also in mysql.ini file i have changed
max_allowed_packet = 100M;
but still I get the following warning. 但我仍然得到以下警告。 Files less than 8mb are easily uploaded but greater than 8mb pops up the above error message.
小于8mb的文件很容易上传,但大于8mb会弹出上述错误消息。
You need to set the value of upload_max_filesize and post_max_size in your php.ini : 您需要在php.ini中设置upload_max_filesize和post_max_size的值:
; Maximum allowed size for uploaded files.
upload_max_filesize = 40M
; Must be greater than or equal to upload_max_filesize
post_max_size = 40M
And then you should stop your apache service and then start your apache
. 然后你应该
stop your apache service and then start your apache
。
In case of linux based systems 在基于Linux的系统的情况下
/opt/lampp/lampp stop
/opt/lampp/lampp start
In case of windows just stop and stop your apache or your xampp service. 如果是Windows,请停止并停止您的apache或xampp服务。
在进程文件set_time_limit(0)中添加第一行;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.