mini\Http\Message\UploadedFile::getClientMediaType() Method

public

Signature

public function getClientMediaType(): ?string

Returns

?string

Documentation

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.

Source

src/Http/Message/UploadedFileTrait.php:217-219