PHP file upload is too large $ _ FILES is empty solution

Source: Internet
Author: User
PHP file upload is too large $ _ FILES is empty solution
In php programming, when the file to be uploaded is too large, $ _ files is displayed as null. For more information, see.

This section solves the problem that $ _ FILES is empty when the PHP file upload is too large.

In a php program, when uploading an image, it is found that the size of a GIF image fails to be uploaded. the actual size is 4.66 MB.

Share the solution that PHP uses to upload files too large.

When uploading a small file, you cannot upload a large file. check upload_max_filesize = 2 M in PHP. INI. The problem is often found here.

Modify the value:

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

Restart the Nginx or apache server. when the php file is uploaded again, the problem is fixed.

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.