private function validateImageMimeType()
    {
        $imageType = exif_imagetype($this->uploadFile->getTemporaryFilename());
        $mime = image_type_to_mime_type($imageType);
        if (!$imageType || !in_array($mime, parent::getAllowedMimeTypes())) {
            throw new \Exception("Uploaded image appears to be corrupt"); // @codeCoverageIgnore
        }
    }
private function validateImageMimeType()
    {
        $imageType = exif_imagetype($this->uploadFile->getTemporaryFilename());
        $mime = image_type_to_mime_type($imageType);
        if (!$imageType || !in_array($mime, parent::getAllowedMimeTypes())) {
            throw new \Exception("Uploaded image appears to be corrupt"); // @codeCoverageIgnore
        }
    }
private function validateImageMimeType ( ) { $ imageType = exif_imagetype ( $ this -> uploadFile -> getTemporaryFilename ( ) ) ; $ mime = image_type_to_mime_type ( $ imageType ) ; if ( ! $ imageType || ! in_array ( $ mime , parent :: getAllowedMimeTypes ( ) ) ) { throw new \ Exception ( "Uploaded image appears to be corrupt" ) ; // @codeCoverageIgnore } }
Validate that the mime type is an actual valid image.

@throws \Exception
Validate that the mime type is an actual valid image .