UploadedFileFactory
in package
implements
UploadedFileFactoryInterface
PSR-17 uploaded file factory class
Tags
Table of Contents
Interfaces
- UploadedFileFactoryInterface
Methods
- createUploadedFile() : UploadedFileInterface
- Create a new uploaded file, materializing the given stream's contents into a temporary file so UploadedFile has a real path to work from
Methods
createUploadedFile()
Create a new uploaded file, materializing the given stream's contents into a temporary file so UploadedFile has a real path to work from
public
createUploadedFile(StreamInterface $stream[, int|null $size = null ][, int $error = UPLOAD_ERR_OK ][, string|null $clientFilename = null ][, string|null $clientMediaType = null ]) : UploadedFileInterface
Parameters
- $stream : StreamInterface
- $size : int|null = null
- $error : int = UPLOAD_ERR_OK
- $clientFilename : string|null = null
- $clientMediaType : string|null = null