WordPress attachment upload size limit

Source: Internet
Author: User

Modify PHP. ini

Post_max_size = 8 m

Upload_max_filesize = 2 m

========================================================== ========================

If the file size is much larger than the server-side limit (upload_max_filesize,

But it is still not reached or close to post_max_size or memory_limit,
$ _ Files will "crash" -- the result is that $ _ FILES ['userfile'] is changed to "undefined Index"

For details, refer to [PHP. ini core configuration options] in the PHP manual 〕
The maximum size of the File Uploaded By upload_max_filesize.
Post_max_size: set the maximum size allowed by post data.
Memory_limit specifies the maximum number of memory bytes that a script can apply.

Generally, memory_limit> post_max_size> upload_max_filesize

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.