-
Notifications
You must be signed in to change notification settings - Fork 1
UploadedFile: getSize Example
Terry L edited this page Jun 20, 2020
·
2 revisions
Shieldon\Psr7\UploadedFile
Retrieve the file size.
-
return
int|null
Example:
$uploadedFile = new \Shieldon\Psr7\UploadedFile(
'/tmp/php200A.tmp',
'example1.jpg',
'image/jpeg',
100000,
0
);
echo $uploadedFile->getSize();
// Outputs: 100000
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.