Documentation

UploadedFileFactory
in package
implements UploadedFileFactoryInterface

PSR-17 uploaded file factory class

Tags
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
6.0.0

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
Return values
UploadedFileInterface

        
On this page

Search results