简体   繁体   English

上载1个文件后,第0行的“未知”中超出了允许的最大文件上传数量

[英]Maximum number of allowable file uploads has been exceeded in Unknown on line 0 after 1 file upload

I know this is an issue generally concerned with batch file uploads as the default php setting should be 20 files. 我知道这是通常与批处理文件上传有关的问题,因为默认的php设置应为20个文件。 However, when I try and process a single file upload I get an empty $_FILES array and an error 但是,当我尝试处理单个文件上传时,我得到一个空的$ _FILES数组和一个错误

Maximum number of allowable file uploads has been exceeded in Unknown on line 0 在第0行的“未知”中超过了允许的最大文件上传数量

which appears on the log file. 出现在日志文件中。

The server is running php version 5.2.9 and even when I try and set max_file_uploads in the php.ini nothing happens. 服务器正在运行php版本5.2.9,即使我尝试在php.ini中设置max_file_uploads也没有任何反应。

It turns out the muppet at the hosting company set up my server incorrectly. 事实证明,托管公司的布偶错误地设置了我的服务器。 He installed it with php 5.3 but couldnt get it to work so reverted back to 5.2.9. 他安装了php 5.3,但无法正常工作,因此恢复为5.2.9。 The function max_file_uploads seems to have remained on the install and as it doesnt exist in 5.2.9 it always fail. 函数max_file_uploads似乎保留在安装中,因为它在5.2.9中不存在,所以总是失败。

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

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