Fr3nch13/CakePHP Utilities

UploadedFileFactory
in package
implements UploadedFileFactoryInterface

Table of Contents

Interfaces

UploadedFileFactoryInterface

Methods

createUploadedFile()  : UploadedFileInterface
Create a new uploaded file.

Methods

createUploadedFile()

Create a new uploaded file.

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

Underlying stream representing the uploaded file content.

$size : int|null = null

in bytes

$error : int = UPLOAD_ERR_OK

PHP file upload error

$clientFilename : string|null = null

Filename as provided by the client, if any.

$clientMediaType : string|null = null

Media type as provided by the client, if any.

Return values
UploadedFileInterface

        
On this page

Search results