public function UploadedFile::getClientMediaType in Lockr 7.3
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/
guzzlehttp/ psr7/ src/ UploadedFile.php, line 312
Class
Namespace
GuzzleHttp\Psr7Code
public function getClientMediaType() {
return $this->clientMediaType;
}