UploadedFileFactory
class UploadedFileFactory (View source)
Has the ability to create streams for uploaded files.
Methods
UploadedFileInterface
createUploadedFile(StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null, string $clientMediaType = null)
Create a new uploaded file.
Details
at line 44
UploadedFileInterface
createUploadedFile(StreamInterface $stream, int $size = null, int $error = \UPLOAD_ERR_OK, string $clientFilename = null, string $clientMediaType = null)
Create a new uploaded file.
If a size is not provided it will be determined by checking the size of the stream.