function UploadedFileInterface::getSize
Same name in other branches
- 9 core/modules/file/src/Upload/UploadedFileInterface.php \Drupal\file\Upload\UploadedFileInterface::getSize()
- 10 core/modules/file/src/Upload/UploadedFileInterface.php \Drupal\file\Upload\UploadedFileInterface::getSize()
Gets file size.
Return value
int The filesize in bytes.
See also
https://www.php.net/manual/en/splfileinfo.getsize.php
2 methods override UploadedFileInterface::getSize()
- FormUploadedFile::getSize in core/
modules/ file/ src/ Upload/ FormUploadedFile.php - Gets file size.
- InputStreamUploadedFile::getSize in core/
modules/ file/ src/ Upload/ InputStreamUploadedFile.php - Gets file size.
File
-
core/
modules/ file/ src/ Upload/ UploadedFileInterface.php, line 32
Class
- UploadedFileInterface
- Provides an interface for uploaded files.
Namespace
Drupal\file\UploadCode
public function getSize() : int;
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.