[英]Warning: POST Content-Length of 25447804 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
I am getting this warning when im uploading file more than 8mb. 我上传文件超过8mb时收到此警告。
I have changed following to php.ini file 我已将以下内容更改为php.ini文件
upload_max_filesize = 10M
post_max_size = 10M
memory_limit = 128M
and i have restarted the apache server too. 而且我也重新启动了Apache服务器。
and i am checking through ths script 我正在通过脚本检查
if($_FILES["submission_file"]["size"] < 1.049e+7)
{
echo "success";
}
What i am doing wrong? 我做错了什么?
You can also change it via an .htaccess file. 您也可以通过.htaccess文件进行更改。
php_value upload_max_filesize 10M php_value upload_max_filesize 10M
php_value post_max_size 10M php_value post_max_size 10M
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.