On admin/settings/uploads the maximum file upload size is displayed at the bottom of the page. The script assumes it to be in MB when it's actually in bytes. Attached patch uses format_size() to display the number correctly.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ChrisKennedy’s picture

FileSize
10.1 KB

Here's an example screenshot - using the patch will display the correct value of 2 MB.

Dries’s picture

Good job, Chris. The fix looks good. However, personally, I think that message is not positioned properly. Why is it below the fieldset?

ChrisKennedy’s picture

FileSize
947 bytes

You're right. On my test site I have no extra roles defined so it doesn't look strange. With extra roles it clearly needs to be within the fieldset.

ChrisKennedy’s picture

Status: Needs review » Reviewed & tested by the community
Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)