/** * Get image mime type * @return string */ public function getMime() { $filePath = $this->getPath(); if (\File::exists($filePath)) { return \File::mimeType($filePath); } return 'unknown/unknown'; }