[wp-trac] [WordPress Trac] #51789: Add system filesize resource limit to wp_max_upload_size function

WordPress Trac noreply at wordpress.org
Mon Nov 16 16:43:42 UTC 2020


#51789: Add system filesize resource limit to wp_max_upload_size function
-------------------------+-----------------------------
 Reporter:  yani.iliev   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 A file will that is smaller than `wp_max_upload_size` but larger than the
 soft filesize resource limit will not upload successfully.
 [https://www.php.net/manual/en/function.posix-getrlimit.php
 posix_getrlimit] will return system resource limits.
 `wp_max_upload_size` function should return the minimum of
 `upload_max_filesize`, `post_max_size`, and `posix_getrlimit()[soft
 filesize]`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51789>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list