public function UploadedFile::getClientSize

Returns the file size.

It is extracted from the request from which the file has been uploaded. Then is should not be considered as a safe value.

@api

Return value

integer|null The file size

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/File/UploadedFile.php, line 146

Class

UploadedFile
A file uploaded through a form.

Namespace

Symfony\Component\HttpFoundation\File

Code

public function getClientSize() {
  return $this->size;
}