[英]move_uploaded_file not working for 2mb and more
I wanted to upload files greater than 2MB and I have changed php.ini
as follows : 我想上传大于2MB的文件,我已经更改了
php.ini
,如下所示:
upload_max_filesize=20M
post_max_size=30M
Restarting Apache updates phpinfo()
but files greater than 2MB are not yet being uploaded. 重新启动Apache更新
phpinfo()
但尚未上载大于2MB的文件。 What could be the reason? 可能是什么原因?
检查你是否更新了正确的php.ini,有些服务器接受某个文件夹的php.ini
A similar question: Photo upload not uploading files bigger than 2MB 一个类似的问题: 照片上传不上传大于2MB的文件
Basically you have to modify your php server's configuration as the link shows to you 基本上你必须修改你的PHP服务器的配置,因为链接显示给你
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.