Make WordPress Core

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

Change History (1)

#1 @sabernhardt
6 years ago

  • Component GeneralUpload
Note: See TracTickets for help on using tickets.