public function getMimeType() { $finfo = finfo_open(FILEINFO_MIME_TYPE); return finfo_file($finfo, $this->getRealPath()); }