$media->niceSize()
Returns the size of the file in a human readable format.
-
return (string)
Example
echo $media->niceSize();
// i.e. 1.2 mb
Returns the size of the file in a human readable format.
echo $media->niceSize();
// i.e. 1.2 mb