Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#3 | file_upload_maxsize_0.patch | 947 bytes | ChrisKennedy |
#1 | file-upload-maxsize.png | 10.1 KB | ChrisKennedy |
file_upload_maxsize.patch | 927 bytes | ChrisKennedy | |
Comments
Comment #1
ChrisKennedy CreditAttribution: ChrisKennedy commentedHere's an example screenshot - using the patch will display the correct value of 2 MB.
Comment #2
Dries CreditAttribution: Dries commentedGood job, Chris. The fix looks good. However, personally, I think that message is not positioned properly. Why is it below the fieldset?
Comment #3
ChrisKennedy CreditAttribution: ChrisKennedy commentedYou'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.
Comment #4
ChrisKennedy CreditAttribution: ChrisKennedy commentedComment #5
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #6
(not verified) CreditAttribution: commented