Note 003 PHP upload file more than 8M failed

Source: Internet
Author: User
If you have already changed the php.ini configuration file upload_max_filesize=2m in order to compare large values, such as 20M, but when you upload, found that once the file is more than 10M, the upload will fail.

Once this phenomenon occurs, you should pay attention to, because the limit file upload size configuration is not only one place here, there is a configuration originally: Post_max_size = 8M. This place limits the size limit of a single upload via post. See here should be able to understand why upload more than 10M (actually more than 8M on the error) will fail.

In fact, I have encountered this problem before, and solved. But for a long time did not use again, and to forget. So hurry up and write a log, lest the future forget again.

The above is the note 003 PHP upload files More than 8M failed content, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.