Page MenuHomePhabricator

Display filesizes in appropriate units
Closed, ResolvedPublic

Description

On category page galleries (e.g. http://www.mediawiki.org/wiki/Category:Files_used_by_extensions_documentation ) and on http://www.mediawiki.org/wiki/Special:NewFiles the file size is displayed in bytes.

That's hard to read and should be displayed in KB, MB, etc. (whatever applies). Just like on e.g. http://www.mediawiki.org/wiki/Special:ListFiles

There might be more pages that display filesize in bytes only.


Version: unspecified
Severity: enhancement

Details

Reference
bz33819
TitleReferenceAuthorSource BranchDest Branch
kubernetes.logs: use a default date if the logs come without itrepos/cloud/toolforge/toolforge-weld!42dcarohandle_logs_without_datemain
jobs-api: bump to 0.0.263-20240222104806-5ddd710frepos/cloud/toolforge/toolforge-deploy!206project_1317_bot_df3177307bed93c3f34e421e26c86e38bump_jobs-apimain
deployment: Pin jobs-api pod to NFS-enabled workersrepos/cloud/toolforge/jobs-api!62taavimain-I0b1d43e2a173b39f145bbcbf5142ed169b9ea259main
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:06 AM
bzimport set Reference to bz33819.
bzimport added a subscriber: Unknown Object (MLST).

r109547 fixes this one

Other usages of 'nbytes':
Mime search: Image size - Fixed in r109548
Generic.php: r109549

Should revision things be displayed in bytes/kb/mb/gb etc? If so, it's easily done...

Linker: Revision Size
Special:Newpages
Special:Shortpages
Special:Undelete
RevisionDelete

Yes, it should display in bytes/kb/mb/gb everywhere.

Maybe not on the dupe check result on Special:upload?