WordPress\AiClientDependencies\Psr\Http\Message

ServerRequestInterface::getUploadedFilespublicWP 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().

Method of the class: ServerRequestInterface{}

No Hooks.

Returns

Array. An array tree of UploadedFileInterface instances; an empty

array MUST be returned if no data is present.

Usage

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

ServerRequestInterface::getUploadedFiles() code WP 7.0

public function getUploadedFiles(): array;