Opened 6 years ago
Last modified 6 years ago
#51789 new enhancement
Add system filesize resource limit to wp_max_upload_size function
| Reported by: | yani.iliev | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Upload | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)