-
Couldn't load subscription status.
- Fork 1
UploadedFile: getClientMediaType Example
Terry L edited this page Jun 20, 2020
·
2 revisions
Shieldon\Psr7\UploadedFile
Retrieve the media type sent by the client.
-
return
string|null
Example:
$uploadedFile = new \Shieldon\Psr7\UploadedFile(
'/tmp/php200A.tmp',
'example1.jpg',
'image/jpeg',
100000,
0
);
$uploadedFile->getClientMediaType();
// Outputs: image/jpegcomposer require shieldon/psr-httpShieldon PSR HTTP implementation written by Terry L. from Taiwan.
