Documentation

UploadedFile
in package
implements UploadedFileInterface uses UploadedFileDecoratorTrait

Class UploadedFile

Table of Contents

Interfaces

UploadedFileInterface

Properties

$uploadedFile  : UploadedFileInterface
$meta  : array<string|int, mixed>

Methods

__construct()  : mixed
addMeta()  : $this
getClientFilename()  : string|null
getClientMediaType()  : string|null
getError()  : int
getMeta()  : array<string|int, mixed>
getSize()  : int|null
getStream()  : StreamInterface
moveTo()  : void
setMeta()  : $this

Properties

Methods

__construct()

public __construct(StreamInterface|string|resource $streamOrFile, int $size, int $errorStatus[, string|null $clientFilename = null ][, string|null $clientMediaType = null ]) : mixed
Parameters
$streamOrFile : StreamInterface|string|resource
$size : int
$errorStatus : int
$clientFilename : string|null = null
$clientMediaType : string|null = null

addMeta()

public addMeta(array<string|int, mixed> $meta) : $this
Parameters
$meta : array<string|int, mixed>
Return values
$this

getMeta()

public getMeta() : array<string|int, mixed>
Return values
array<string|int, mixed>

setMeta()

public setMeta(array<string|int, mixed> $meta) : $this
Parameters
$meta : array<string|int, mixed>
Return values
$this

        
On this page

Search results