允许上传文件的最大数量已超过 [英] Maximum number of allowable file uploads has been exceeded
本文介绍了允许上传文件的最大数量已超过的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们正在一次上传约500图像
We're uploading about 500 images at a time
max_file_uploads = 600
memory_limit = 200M ( most images are 12-15KB )
post_max_size = 200M
为什么我们仍然收到这个警告?
Why are we still getting that warning?
修改:所有这些变量在php.ini文件中设置并确认使用phpinfo()函数检查;
EDIT: All these variables are set in the php.ini file and confirmed by checking using phpinfo();
推荐答案
PHP脚本甚至不会开始执行,直到所有的文件已被上传。这意味着你不能在 max_file_uploads
指令在PHP中的变化,例如与的ini_set()
:你需要做的是在的php.ini
文件。否则,当您更改设置上限已经被击中了。
The PHP script won't even start executing until all the files have been uploaded. That means that you cannot change the max_file_uploads
directive from within PHP, e.g. with ini_set()
: you need to do it in the php.ini
file. Otherwise, when you change the setting the limit has already been hit.
这篇关于允许上传文件的最大数量已超过的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文