public function upload() { if (file_exists($this->tempPath) && getimagesize($this->tempPath) !== false) { if (parent::upload()) { $this->thumbnail(); return true; } } return false; }
public static function getMaximumFileUploadSize() { return File::getMaximumFileUploadSize(); }