UploadedFile::getClientMimeType()

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

Return Value

string|null The mime type

See also

getMimeType()
doc_Symfony
2016-10-28 06:35:59
Comments
Leave a Comment

Please login to continue.