From: Mikael Nordfeldth Date: Fri, 24 Jun 2016 13:53:23 +0000 (+0200) Subject: Allow getting filesize by function X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1dfac3ad63017071cca551a3e7f557da3f6d24aa;p=quix0rs-gnu-social.git Allow getting filesize by function --- diff --git a/classes/File.php b/classes/File.php index c85d919fd7..1a38aefa72 100644 --- a/classes/File.php +++ b/classes/File.php @@ -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)