phasync
ServerRequest / getUploadedFiles

Method

ServerRequest::getUploadedFiles

Retrieve normalized file upload data.

Description#

public ServerRequest::getUploadedFiles(): array

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().

Return values#

An array tree of UploadedFileInterface instances; an empty array MUST be returned if no data is present. array