简体   繁体   English

无法通过PHP上传大文件

[英]Cant upload big file via PHP

The console shows the warning Time over 1000ms when I upload a file more than 10MB. 当我上传超过10MB的文件时,控制台会显示警告“ Time over 1000ms All of the settings in php.ini are fine, but I still cannot upload to the server. php.ini中的所有设置都可以,但是我仍然无法上传到服务器。

You need to update upload max size,max execution time and post max size Update the Maximum upload size in the php.ini file. 您需要更新上载最大大小,最大执行时间并发布最大大小更新php.ini文件中的最大上载大小。

Variable name in php.ini file php.ini文件中的变量名

upload_max_filesize:11M post_max_size:11M // more than 10M max_execution_time:500 upload_max_filesize:11M post_max_size:11M //超过10M max_execution_time:500

Thanks All. 谢谢大家 After I set the post_max_size to 100M in my WHM and everything done! 在我的WHM中将post_max_size设置为100M之后,一切都完成了!

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM