public function getMimeType() { $guesser = MimeTypeGuesser::getInstance(); return $guesser->guess($this->getPathname()); }
/** * Get mime type of file. * * @return string */ public function getMimeType() { if ($this->file instanceof UploadedFile) { return $this->file->getClientMimeType(); } return $this->file->getMimeType(); }