PHP文件输入编号限制为20

PHP文件输入编号限制为20,php,file-upload,Php,File Upload,我上传了多个文件,但$\u文件似乎在20次输入后被分块 var_dump($_FILES); //gives array(20){ ... } although there are more file inputs 这是公众 哪个参数负责此限制 作为一种解决方法,我使用了一些javascript: <input id="input_fileXX" type="file" class="input_file"> ---- $('.input_file').on('ch

我上传了多个文件,但
$\u文件
似乎在20次输入后被分块

var_dump($_FILES); //gives array(20){ ... } although there are more file inputs
这是公众

哪个参数负责此限制

作为一种解决方法,我使用了一些javascript:

    <input id="input_fileXX" type="file" class="input_file">
----
    $('.input_file').on('change',function(){
        $(this).prop('name',$(this).prop('id'));
    });

----
$('.input_file')。在('change',function()上{
$(this.prop('name',$(this.prop('id'));
});
这只允许发送有变化的输入。这在无法更改php.ini时非常有用。

自PHP5.2.12以来,配置设置限制了一次请求中可以上载的文件数量。您需要确保表单在一次请求中上载的文件不会超过此限制


谢谢你,现在我明白了。我将使用我使用的变通方法更新我的问题。谢谢你的两份