phasync
ServerRequest / withUploadedFiles

Method

ServerRequest::withUploadedFiles

Create a new instance with the specified uploaded files.

Description#

public ServerRequest::withUploadedFiles(
    $uploadedFiles
): ServerRequestInterface

This method MUST be implemented in such a way as to retain the immutability of the message, and MUST return an instance that has the updated body parameters.

Parameters#

$uploadedFiles
An array tree of UploadedFileInterface instances.

Return values#

ServerRequestInterface

Errors / Exceptions#

ExceptionWhen
InvalidArgumentExceptionIf an invalid structure is provided.