You are here

public function UploadedFileInterface::getSize in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/psr/http-message/src/UploadedFileInterface.php \Psr\Http\Message\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.

2 methods override UploadedFileInterface::getSize()
UploadedFile::getSize in vendor/zendframework/zend-diactoros/src/UploadedFile.php
UploadedFile::getSize in vendor/symfony/psr-http-message-bridge/Tests/Fixtures/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\Message

Code

public function getSize();