WordPress\AiClientDependencies\Psr\Http\Message

UploadedFileInterface::getError │ public │ WP 1.0

Retrieve the error associated with the uploaded file.

The return value MUST be one of PHP's UPLOAD_ERR_XXX constants.

If the file was uploaded successfully, this method MUST return UPLOAD_ERR_OK.

Implementations SHOULD return the value stored in the "error" key of the file in the $_FILES array.

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

Хуков нет.

Возвращает

int. One of PHP's UPLOAD_ERR_XXX constants.

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

$UploadedFileInterface = new UploadedFileInterface();
$UploadedFileInterface->getError(): int;

Заметки

Смотрите: http://php.net/manual/en/features.file-upload.errors.php

Код UploadedFileInterface::getError() WP 7.1.2

public function getError(): int;