I think you should add a field handler for file sizes. All it has to do is map to format_size().

Attached is a very simple patch to do just that.

CommentFileSizeAuthor
views.module_filesize.patch1.62 KBdrewish

Comments

drewish’s picture

humm, it looks like the patch isn't so simple. my editor seems to have cleaned off some trailing whitespace.

drewish’s picture

it looks like someone committed this (or someone else's version)?

drewish’s picture

Status: Needs review » Fixed
merlinofchaos’s picture

Yup, I did; forgot to mark it fixed.

Anonymous’s picture

Status: Fixed » Closed (fixed)