Authors: George Ornbo, Craig Allen Source Code: Github
- ExpressionEngine Version 1.6.x (1.x.x releases), ExpressionEngine Version 2.0.x (2.x.x releases)
Human Filesize is free for personal and commercial use.
If you use it commercially use a donation of $10 is suggested. You can send donations here.
Human Filesize is licensed under a Open Source Initiative - BSD License license.
For EE 1.6.x the file pi.human_filesize.php must be placed in the /system/plugins/ folder in your ExpressionEngine installation.
For EE 2.0.0 the human_filesize folder must be placed in the /system/expressionengine/third_party/ folder in your ExpressionEngine installation.
Human Filesize
Shows the size of a file in human readable format
This plugin returns the size of a file in human readable format (e.g 101.34 KB, 10.41 GB ) Wrap the absolute path filename in these tags to have it processed
{exp:human_filesize}/uploads/documents/your_document.pdf{/exp:human_filesize}
If you are using Mark Huot's File extension you can just use the EE tag you chose for the file field
{exp:human_filesize}{your_file_field}{/exp:human_filesize}
The function calculates whether to show KB, MB or GB depending on the file size.
There are currently no parameters
There are currently no single variables
{exp:human_filesize}/uploads/documents/your_document.pdf{/exp:human_filesize}