WordPress\AiClientDependencies\Psr\Http\Message

ServerRequestInterface::getUploadedFiles │ public │ WP 1.0

Retrieve normalized file upload data.

This method returns upload metadata in a normalized tree, with each leaf an instance of Psr\Http\Message\UploadedFileInterface.

These values MAY be prepared from $_FILES or the message body during instantiation, or MAY be injected via withUploadedFiles().

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

Хуков нет.

Возвращает

array. An array tree of UploadedFileInterface instances; an empty

array MUST be returned if no data is present.

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

$ServerRequestInterface = new ServerRequestInterface();
$ServerRequestInterface->getUploadedFiles(): array;

Код ServerRequestInterface::getUploadedFiles() WP 7.1.2

public function getUploadedFiles(): array;