[wp-trac] [WordPress Trac] #13575: wp_max_upload_size() is not taking memory limit into account

WordPress Trac noreply at wordpress.org
Mon Nov 9 03:46:38 UTC 2015


#13575: wp_max_upload_size() is not taking memory limit into account
-------------------------------------+----------------------
 Reporter:  hakre                    |       Owner:  dd32
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:
Component:  Upload                   |     Version:  3.0
 Severity:  normal                   |  Resolution:  invalid
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+----------------------
Changes (by dd32):

 * status:  assigned => closed
 * resolution:   => invalid
 * milestone:  4.4 =>


Comment:

 In the real world, the memory limit doesn't appear to limit the upload
 size.

 With my memory limits set to 40M I'm able to upload a 100MB file without
 issue.

 PHP's behaviour may have changed in the last few years, but the
 documentation now reads:
 > Sets max size of post data allowed. This setting also affects file
 upload. To upload large files, this value must be larger than
 upload_max_filesize. Generally speaking, memory_limit should be larger
 than post_max_size.

 Since there's been no reports of issues surrounding this, i'm marking this
 as invalid unless someone can track down where/when it affected PHP.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/13575#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list