Opened 5 years ago
Last modified 5 years ago
#51789 new enhancement
Add system filesize resource limit to wp_max_upload_size function
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Upload | Keywords: | |
| Focuses: | Cc: |
Description
A file will that is smaller than wp_max_upload_size but larger than the soft filesize resource limit will not upload successfully.
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].
Note: See
TracTickets for help on using
tickets.