HttpUploadedFile
in package
implements
ICloseable
Table of Contents
Interfaces
- ICloseable
- Provides an interface for releasing unmanaged resources.
Methods
- __construct() : mixed
- __destruct() : mixed
- close() : void
- Free, release or reset unmanaged resources.
- createFromFILE() : self
- createFromFILES() : array<string|int, mixed>
- getErrorCode() : int
- getLocalFileName() : string|null
- getLocalMediaType() : MediaType|null
- getSize() : int
- getStream() : Stream
- getSuggestedFileName() : string
- getSuggestedMediaType() : MediaType
- hasMoved() : bool
- moveTo() : void
Methods
__construct()
public
__construct(int $errorCode, int $size, string $localFileName, string $suggestedFileName, MediaType|string $suggestedMediaType) : mixed
Parameters
- $errorCode : int
- $size : int
- $localFileName : string
- $suggestedFileName : string
- $suggestedMediaType : MediaType|string
__destruct()
public
__destruct() : mixed
close()
Free, release or reset unmanaged resources.
public
close() : void
createFromFILE()
public
static createFromFILE(array<string|int, mixed> $file) : self
Parameters
- $file : array<string|int, mixed>
Return values
selfcreateFromFILES()
public
static createFromFILES(array<string|int, mixed> $files) : array<string|int, mixed>
Parameters
- $files : array<string|int, mixed>
Return values
array<string|int, mixed>getErrorCode()
public
getErrorCode() : int
Return values
intgetLocalFileName()
public
getLocalFileName() : string|null
Return values
string|nullgetLocalMediaType()
public
getLocalMediaType() : MediaType|null
Return values
MediaType|nullgetSize()
public
getSize() : int
Return values
intgetStream()
public
getStream() : Stream
Return values
StreamgetSuggestedFileName()
public
getSuggestedFileName() : string
Return values
stringgetSuggestedMediaType()
public
getSuggestedMediaType() : MediaType
Return values
MediaTypehasMoved()
public
hasMoved() : bool
Return values
boolmoveTo()
public
moveTo(string $path) : void
Parameters
- $path : string