Home > Backend Development > PHP Tutorial > Why PHP always gets null values ​​when uploading files

Why PHP always gets null values ​​when uploading files

WBOY
Release: 2016-07-29 08:50:49
Original
1598 people have browsed it

Not long ago, when I was making an extension for the backend of the company's project Guaten.com (http://www.guaten.com/), the product attributes can upload pictures.


Why PHP always gets null values ​​when uploading files

I found that the files obtained by the background PHP were always empty. It took me a long time to find out the reason:


Why PHP always gets null values ​​when uploading files

Whether PHP can upload files and how many files can be uploaded depends on two things. Values: file_uploads and max_file_uploads.

Found that there are too many tags in the HTML document, exceeding the maximum value set by max_file_uploads in php.ini. Just increase the max_file_uploads.

Original link: http://woqilin.blogspot.com/2016/05/php.html

The above introduces the reason why PHP always gets null values ​​when uploading files, including file upload and PHP content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
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