UploadedFileFactory Class
Aurora\Http\Factory Namespace
Interfaces
- I UploadedFileFactoryInterface
Methods
createUploadedFile
Create a new uploaded file
Parameters
-
Psr\Http\Message\StreamInterface
$stream
— Underlying stream representing the uploaded file content -
int
$size
— in bytes -
int
$error
— PHP file upload error -
string
$clientFilename
— Filename as provided by the client, if any -
string
$clientMediaType
— Media type as provided by the client, if any
Return Value
\UploadedFileInterface
Signature
public function createUploadedFile(Psr\Http\Message\StreamInterface $stream, int $size, int $error, string $clientFilename, string $clientMediaType): Psr\Http\Message\UploadedFileInterface