[FEATURE] ViewHelper to display file sizes 36/21436/3
authorWouter Wolters <typo3@wouterwolters.nl>
Fri, 14 Jun 2013 18:04:11 +0000 (20:04 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 22 Jun 2013 22:18:23 +0000 (00:18 +0200)
commit7985a653d4886336cf43c93c268c7f4ae6f5de07
treee0f6246bb14147edff0adbae46a4f5227736c8ae
parent7557849d5fd15fb63473b3899e3a79baee825134
[FEATURE] ViewHelper to display file sizes

Simple ViewHelper that converts the size of a file to a human
readable string.

Usage:
{fileSize -> f:format.bytes()}

Change-Id: Iffb155e209fe0d2e89aae6d93706e994b4b0b8e7
Resolves: #49139
Related: #49128
Releases: 6.2
Reviewed-on: https://review.typo3.org/21436
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Zbigniew Jacko
Tested-by: Zbigniew Jacko
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/fluid/Classes/ViewHelpers/Format/BytesViewHelper.php [new file with mode: 0644]
typo3/sysext/fluid/Tests/Unit/ViewHelpers/Format/BytesViewHelperTest.php [new file with mode: 0644]