Documentation

MultipartRequestSupport implements MiddlewareInterface

Multipart request support for PUT and PATCH.

Table of Contents

Interfaces

MiddlewareInterface

Methods

process()  : ResponseInterface
addFile()  : void
processPart()  : void

Methods

process()

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface
$handler : RequestHandlerInterface
Return values
ResponseInterface

addFile()

protected addFile(array<string|int, mixed> &$files, string $name, UploadedFileInterface $file) : void
Parameters
$files : array<string|int, mixed>
$name : string
$file : UploadedFileInterface

processPart()

protected processPart(array<string|int, mixed> &$params, array<string|int, mixed> &$files, string $part) : void
Parameters
$params : array<string|int, mixed>
$files : array<string|int, mixed>
$part : string

        
On this page

Search results