Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#51789 new enhancement

Add system filesize resource limit to wp_max_upload_size function

Reported by: yaniiliev's profile yani.iliev Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Upload Keywords:
Focuses: Cc:


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].

Change History (1)

#1 @sabernhardt
4 years ago

  • Component changed from General to Upload
Note: See TracTickets for help on using tickets.