function UploadedFileInterface::getSize
Same name in this branch
- 11.1.x core/modules/file/src/Upload/UploadedFileInterface.php \Drupal\file\Upload\UploadedFileInterface::getSize()
Retrieve the file size.
Implementations SHOULD return the value stored in the "size" key of the file in the $_FILES array if available, as PHP calculates this based on the actual size transmitted.
Return value
int|null The file size in bytes or null if unknown.
1 method overrides UploadedFileInterface::getSize()
- UploadedFile::getSize in vendor/
guzzlehttp/ psr7/ src/ UploadedFile.php - Retrieve the file size.
File
-
vendor/
psr/ http-message/ src/ UploadedFileInterface.php, line 76
Class
- UploadedFileInterface
- Value object representing a file uploaded through an HTTP request.
Namespace
Psr\Http\MessageCode
public function getSize() : ?int;