private function formatFileSize($bytes, $format = '0.00')
{
$units = array('B', 'kB', 'MB', 'GB', 'TB', 'PB');
$bytes = max($bytes, 0);
$expo = floor(($bytes ? log($bytes) : 0) / log(1024));
$expo = min($expo, count($units) - 1);
$bytes /= pow(1024, $expo);
return $this->formatNumber($bytes, $format) . ' ' . $units[$expo];
}