/** * Get file extension * * @return string */ public function getExtension() { return self::STORAGE_S3 == $this->getStorageType() ? $this->getExtensionByMIME() : parent::getExtension(); }