Skip to content

Kirby 5.0.4

$files->niceSize()

Returns the file size for all files in the collection in a human-readable format

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

Parameters

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

Return type

string

This method modifies the existing $files object it is applied to and returns it again.

Parent class

Kirby\Cms\Files