You are here

public function UploadedFile::getClientMediaType in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-diactoros/src/UploadedFile.php \Zend\Diactoros\UploadedFile::getClientMediaType()
  2. 8.0 vendor/symfony/psr-http-message-bridge/Tests/Fixtures/UploadedFile.php \Symfony\Bridge\PsrHttpMessage\Tests\Fixtures\UploadedFile::getClientMediaType()
Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-diactoros/src/UploadedFile.php \Zend\Diactoros\UploadedFile::getClientMediaType()

Retrieve the media type sent by the client.

Do not trust the value returned by this method. A client could send a malicious media type with the intention to corrupt or hack your application.

Implementations SHOULD return the value stored in the "type" key of the file in the $_FILES array.

Return value

string|null The media type sent by the client or null if none was provided.

Overrides UploadedFileInterface::getClientMediaType

File

vendor/zendframework/zend-diactoros/src/UploadedFile.php, line 209

Class

UploadedFile

Namespace

Zend\Diactoros

Code

public function getClientMediaType() {
  return $this->clientMediaType;
}