Php Can';不要上传超过10个文件

Php Can';不要上传超过10个文件,php,zend-framework,Php,Zend Framework,我正在设置表单,以便可以上载多个文件: <div> <input type="hidden" name="MAX_FILE_SIZE" value="" id="MAX_FILE_SIZE"> <input type="hidden" name="UPLOAD_IDENTIFIER" value="" id="progress_key"> <input type="file" name="image[]" id="image-0"

我正在设置表单,以便可以上载多个文件:

<div>
    <input type="hidden" name="MAX_FILE_SIZE" value="" id="MAX_FILE_SIZE">
    <input type="hidden" name="UPLOAD_IDENTIFIER" value="" id="progress_key">
    <input type="file" name="image[]" id="image-0">
</div>
我在zend端没有任何带有count的验证器或其他任何东西来阻止它。

请检查您的:


max_file_uploads:允许同时上载的最大文件数。从PHP5.3.4开始,提交时保留空白的上传字段不计入此限制

从不从客户端发送最大文件大小。安全漏洞。请尝试:max_file_uploads(您需要在php.ini中执行此操作)默认值为20,您必须使用共享主机。我的主机提供商sys admin说这不是问题所在,所以我不想检查,但在所有答案之后,我环顾四周,事实上这就是问题所在。在我要求改变之后,一切都很完美。谢谢大家!如果您有疑问,可以使用
ini\u get('max\u file\u uploads')
显示配置中的内容。
Array
(
    [image] => Array
        (
            [name] => Array
                (
                    [0] => Nenufares.jpg
                    [1] => Nenufares.jpg
                    [2] => Nenufares.jpg
                    [3] => Nenufares.jpg
                    [4] => Nenufares.jpg
                    [5] => Nenufares.jpg
                    [6] => Nenufares.jpg
                    [7] => Nenufares.jpg
                    [8] => Nenufares.jpg
                    [9] => Nenufares.jpg
                )

            [type] => Array
                (
                    [0] => image/jpeg
                    [1] => image/jpeg
                    [2] => image/jpeg
                    [3] => image/jpeg
                    [4] => image/jpeg
                    [5] => image/jpeg
                    [6] => image/jpeg
                    [7] => image/jpeg
                    [8] => image/jpeg
                    [9] => image/jpeg
                )

            [tmp_name] => Array
                (
                    [0] => /tmp/phpAKZxze
                    [1] => /tmp/phplRShGv
                    [2] => /tmp/phpJz64SW
                    [3] => /tmp/phpBkfMoz
                    [4] => /tmp/phpraMZBl
                    [5] => /tmp/phpeqaEgk
                    [6] => /tmp/phpVwxvFv
                    [7] => /tmp/phplvYiUS
                    [8] => /tmp/phpPGhqGr
                    [9] => /tmp/php5kMZca
                )

            [error] => Array
                (
                    [0] => 0
                    [1] => 0
                    [2] => 0
                    [3] => 0
                    [4] => 0
                    [5] => 0
                    [6] => 0
                    [7] => 0
                    [8] => 0
                    [9] => 0
                )

            [size] => Array
                (
                    [0] => 83794
                    [1] => 83794
                    [2] => 83794
                    [3] => 83794
                    [4] => 83794
                    [5] => 83794
                    [6] => 83794
                    [7] => 83794
                    [8] => 83794
                    [9] => 83794
                )

        )
; Maximum number of files that can be uploaded via a single request
max_file_uploads = 20