Allow getting filesize by function
This commit is contained in:
parent
f1e3314bb7
commit
1dfac3ad63
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user