file_upload_max_size() does not properly interpret unlimited post_max_size

Created on 8 May 2017, over 7 years ago
Updated 22 May 2023, over 1 year ago

If PHP's upload_max_filesize is defined to a positive value (say "25M") and post_max_size is set to unlimited ("0"). The file max upload should be set to 25M. However, Drupal's file field description reports a "0 bytes limit".

In order to correct this, file_upload_max_size() should account for post_max_size set to unlimited, "0". This has been introduced in PHP 5.3.2 and PHP 5.2.12.

🐛 Bug report
Status

Needs work

Version

10.1

Component
File system 

Last updated 2 days ago

Created by

🇺🇸United States chrissnyder Maryland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024