最大文件号可以同时上传php [英] Max file number can php upload at same time

查看:120
本文介绍了最大文件号可以同时上传php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用标签
上传多个文件与PHP。我注意到,如果我选择超过20个文件,php只上传前20个文件,有扩展这个限制的方法吗?

I am using the tag for uploading multiple files with php. I notice that if i choose more than 20 files php uploads only the first 20 files.Is there a way to expand this limit?

推荐答案

p>此限制添加在PHP 5.3.1中,以避免一种DOS攻击:临时文件耗尽。

This limit was added in PHP 5.3.1, to avoid a type of DOS attack: temporary files exhaustion.


添加max_file_uploads INI指令,可以设置为默认将每个请求的文件上传数限制为20个,以通过临时文件耗尽来防止可能的DOS。 (Ilia)

Added "max_file_uploads" INI directive, which can be set to limit the number of file uploads per-request to 20 by default, to prevent possible DOS via temporary file exhaustion. (Ilia)

(PHP 5.3.1的更改日志)

(changelog for PHP 5.3.1)

你可以通过更改 来增加此限制max_file_uploads 指令。

You can increase this limit by changing the max_file_uploads directive.

这篇关于最大文件号可以同时上传php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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