Allow getting filesize by function

This commit is contained in:
Mikael Nordfeldth 2016-06-24 15:53:23 +02:00
parent f1e3314bb7
commit 1dfac3ad63
1 changed files with 5 additions and 0 deletions

View File

@ -263,6 +263,11 @@ class File extends Managed_DataObject
return self::tryFilename($this->filename);
}
public function getSize()
{
return intval($this->size);
}
// where should the file go?
static function filename(Profile $profile, $origname, $mimetype)