public function fileMimeType($path) { return $this->mimeDetect->findType(pathinfo($path, PATHINFO_EXTENSION)); }