WordPress\AiClientDependencies\Psr\Http\Message

UploadedFileInterface::getSize │ public │ WP 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.

Метод класса: UploadedFileInterface{}

Хуков нет.

Возвращает

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

Использование

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

Код UploadedFileInterface::getSize() WP 7.1.2

public function getSize(): ?int;