Documentation

FormFlashFile
in package
implements UploadedFileInterface, JsonSerializable

Class FormFlashFile

Table of Contents

Interfaces

UploadedFileInterface
JsonSerializable

Properties

$field  : string
$flash  : FormFlash
$id  : string
$moved  : bool
$upload  : array<string|int, mixed>

Methods

__construct()  : mixed
FormFlashFile constructor.
__debugInfo()  : array<string|int, mixed>
checkXss()  : void
getClientFilename()  : string
getClientMediaType()  : string
getDestination()  : string
getError()  : int
getField()  : string
getId()  : string
getMetaData()  : array<string|int, mixed>
getSize()  : int
getStream()  : StreamInterface
getTmpFile()  : string|null
isMoved()  : bool
jsonSerialize()  : array<string|int, mixed>
moveTo()  : void
isOk()  : bool
validateActive()  : void

Properties

Methods

__construct()

FormFlashFile constructor.

public __construct(string $field, array<string|int, mixed> $upload, FormFlash $flash) : mixed
Parameters
$field : string
$upload : array<string|int, mixed>
$flash : FormFlash

__debugInfo()

public __debugInfo() : array<string|int, mixed>
Attributes
#[ReturnTypeWillChange]
Return values
array<string|int, mixed>

getClientFilename()

public getClientFilename() : string
Return values
string

getClientMediaType()

public getClientMediaType() : string
Return values
string

getDestination()

public getDestination() : string
Return values
string

getMetaData()

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

getStream()

public getStream() : StreamInterface
Return values
StreamInterface

getTmpFile()

public getTmpFile() : string|null
Return values
string|null

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Attributes
#[ReturnTypeWillChange]
Return values
array<string|int, mixed>

moveTo()

public moveTo(string $targetPath) : void
Parameters
$targetPath : string

isOk()

private isOk() : bool
Return values
bool

return true if there is no upload error

validateActive()

private validateActive() : void
Tags
throws
RuntimeException

if is moved or not ok


        
On this page

Search results