WordPress.org

Make WordPress Core

Opened 11 months ago

Last modified 11 months ago

#51789 new enhancement

Add system filesize resource limit to wp_max_upload_size function

Reported by: yani.iliev 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].

Change History (1)

#1 @sabernhardt
11 months ago

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