PHP档案上限 [英] PHP max file limit

查看:47
本文介绍了PHP档案上限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文件上传系统,在PHP中,一次选择限制为20个文件,即使我选择25-30个文件也只能上传20个文件.我想知道为什么存在此问题以及是否有解决方法可以从php.ini或任何地方访问.

I have a file upload system which, in PHP, limits to 20 files at once, even though I select 25-30 files it only uploads 20. I would like to know why this problem exists and if there is a fix to this either from php.ini or from anywhere.

推荐答案

max_file_uploads 更改为您在php.ini中所需的任何值.但要小心一些陷阱

change max_file_uploads to whatever value you like in your php.ini. but beware of few gotchas

max_file_uploads 对空的上传字段进行计数,就好像它们在被使用一样

max_file_uploads counts empty upload fields as if they were being used

有一本好文章,您应该阅读

这篇关于PHP档案上限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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