PHP upload file too large $_files is empty solution

Source: Internet
Author: User
Tags php file upload php programming
This article introduces, in PHP programming, when the upload file is too large, $_files display as an empty solution, the need for a friend reference.

This section: To solve the PHP upload file is too large when the $_files empty problem.

In the PHP development program, upload a picture, found a GIF image upload failed size is 0, the actual size is 4.66M.

Share the resolution of files that are too large to upload in PHP.

When uploading small files, you can not upload large files, see the next php.ini inside upload_max_filesize = 2M, the problem is often out here.

Modify its value:

; Maximum allowed size for uploaded files. Upload_max_filesize = 20M

Restart the next nginx or Apache server, the php file upload again, found that the problem has been resolved.

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