Skip to content

Kirby 3.6.6

$file->niceSize()

Returns the file size in a human-readable format

$file->niceSize(string|null|false $locale = null): string

Parameters

Name Type Default Description
$locale string|null|false null Locale for number formatting,
null for the current locale,
false to disable number formatting

Return type

string

Parent class

Kirby\Filesystem\File