Returns the mime type of the file.
The mime type is guessed using the functions finfo(), mime_content_type() and the system binary "file" (in this order), depending on which of those is available on the current operating system.
@api
string|null The guessed mime type (i.e. "application/pdf")
public function getMimeType() {
$guesser = MimeTypeGuesser::getInstance();
return $guesser
->guess($this
->getPathname());
}