You are here

public function UploadedFile::getClientMimeType in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/File/UploadedFile.php \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).

Return value

string|null The mime type

See also

getMimeType()

1 call to UploadedFile::getClientMimeType()
UploadedFile::guessClientExtension in vendor/symfony/http-foundation/File/UploadedFile.php
Returns the extension based on the client mime type.

File

vendor/symfony/http-foundation/File/UploadedFile.php, line 138

Class

UploadedFile
A file uploaded through a form.

Namespace

Symfony\Component\HttpFoundation\File

Code

public function getClientMimeType() {
  return $this->mimeType;
}