Home >Backend Development >PHP Tutorial >Note 003 PHP failed to upload files exceeding 8M
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)!