PHP limit upload file Size specific solution _php Tutorial

Source: Internet
Author: User
In practice, we will find it cumbersome to set the file upload size in php.ini and error-prone. So, today we will teach you a few specific Workaround:

php limit upload file size first :

Check the following line in the php.ini:

Upload_max_filesize = 8M

Post_max_size = 10M

Memory_limit = 20M

Change these values to what I said and see if there are any problems, and also confirm that the uploaded

The does not resemble the following line

This is also limited upload size.

php limit upload file size second:

If it's Apache 2 needs to be modified

/etc/httpd/conf.d/php.conf

Limitreq Uestbody 524288 524288 (=512x1024) to large, such as 5M (=5x1024x1024)

After the PHP limit upload file size, file upload will not appear above problems, upload does not respond, Upload reality The page cannot be realistic and will be solved!


http://www.bkjia.com/phpjc/446395.html www.bkjia.com True http://www.bkjia.com/phpjc/446395.html techarticle In practice, we will find it cumbersome to set the file upload size in php.ini and error-prone. So, today we teach you a few specific solutions ...

  • 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.