Method
ServerRequest::withUploadedFiles
Create a new instance with the specified uploaded files.
Description#
public ServerRequest::withUploadedFiles(
$uploadedFiles
): ServerRequestInterfaceThis 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#
| Exception | When |
|---|---|
InvalidArgumentException | If an invalid structure is provided. |