WordPress\AiClientDependencies\Psr\Http\Message

UploadedFileInterface::getSizepublicWP 1.0

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.

Method of the class: UploadedFileInterface{}

No Hooks.

Returns

Int|null. The file size in bytes or null if unknown.

Usage

$UploadedFileInterface = new UploadedFileInterface();
$UploadedFileInterface->getSize(): ?int;

UploadedFileInterface::getSize() code WP 7.0

public function getSize(): ?int;