Home > Backend Development > PHP Tutorial > php 文件上传数量限制

php 文件上传数量限制

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-23 13:41:00
Original
1619 people have browsed it

今天上传文件,发现有几张图片传不上去,检查代码发现没有问题,图片也是好的。打印出php的$_files数组,发现数组下标0-19,只有20张图片,检查PHP配置文件发现有一个参数:

; Maximum number of files that can be uploaded via a single requestmax_file_uploads = 20
Copy after login

看到这里,自然明白了,将参数改大即可解决问题。

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template