UploadedFile.mimeType

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).

@return string|null The mime type

@see getMimeType()

class UploadedFile
override
string
mimeType
()

Meta