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

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?