public function UploadedFile::getClientMimeType

Returns the file mime type.

It is extracted from the request from which the file has been uploaded. Then is should not be considered as a safe value.

@api

Return value

string|null The mime type

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/UploadedFile.php, line 131

Class

UploadedFile
A file uploaded through a form.

Namespace

Symfony\Component\HttpFoundation\File

Code

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