Home > Backend Development > PHP Tutorial > Note 003 PHP failed to upload files exceeding 8M

Note 003 PHP failed to upload files exceeding 8M

黄舟
Release: 2023-03-04 08:52:02
Original
1670 people have browsed it

If you have obviously changed the upload_max_filesize=2M in the php.ini configuration file to a larger value, such as 20M, but when you upload it, you find that once the file exceeds 10M, the upload will fail.

You should pay attention once this phenomenon occurs, because this is not the only configuration that limits the file upload size. There is also another configuration that originally was: post_max_size = 8M. This place limits the size of a single upload via post. After seeing this, you should be able to understand why uploading more than 10M (actually an error will be reported if it exceeds 8M) will fail.

Actually, I have encountered this problem before and solved it. But I didn’t use it again for a long time and forgot about it. So I quickly ran up and wrote a diary so as not to forget it again in the future.

The above is the content of Note 003 PHP failed to upload files exceeding 8M. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!


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