Symfony\Component\HttpFoundation\File\UploadedFile::getClientMimeType
Returns the file mime type.
The client mime type is extracted from the request from which the file was uploaded, so it should not be considered as a safe value. For a trusted mime type, use getMimeType() instead (which guesses the mime type based on the file content).
Signature
public function getClientMimeType()
Returns
- string|null
- The mime type