已超出允许的最大文件上传数量 [英] Maximum number of allowable file uploads has been exceeded

查看:44
本文介绍了已超出允许的最大文件上传数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们一次上传大约 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 脚本甚至不会开始执行.这意味着您不能从 PHP 内部更改 max_file_uploads 指令,例如使用 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆