public static function filesize($id) { $file = ORM::factory('Storage', $id); if (!$file->loaded()) { return ''; } $size = filesize($file->file_path); return FileData::size($size); }