You are here

public function UploadedFileInterface::getSize in Drupal 10

Gets file size.

Return value

int The filesize in bytes.

See also

https://www.php.net/manual/en/splfileinfo.getsize.php

1 method overrides UploadedFileInterface::getSize()
FormUploadedFile::getSize in core/modules/file/src/Upload/FormUploadedFile.php
Gets file size.

File

core/modules/file/src/Upload/UploadedFileInterface.php, line 56

Class

UploadedFileInterface
Provides an interface for uploaded files.

Namespace

Drupal\file\Upload

Code

public function getSize() : int;