\ManaPHP\Http\RequestFileInterface

Summary

Methods
Constants
getKey()
getSize()
getName()
getTempName()
getType()
moveTo()
getExtension()
delete()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getKey()

getKey() : string

Returns the file key

Returns

string

getSize()

getSize() : integer

Returns the file size of the uploaded file

Returns

integer

getName()

getName() : string

Returns the real name of the uploaded file

Returns

string

getTempName()

getTempName() : string

Returns the temporal name of the uploaded file

Returns

string

getType()

getType(boolean  $real = true) : string

Parameters

boolean $real

Returns

string

moveTo()

moveTo(string  $dst, string  $allowedExtensions = 'jpg,jpeg,png,gif,doc,xls,pdf,zip', boolean  $overwrite = false) 

Move the temporary file to a destination

Parameters

string $dst
string $allowedExtensions
boolean $overwrite

getExtension()

getExtension() : string

Returns the file extension

Returns

string

delete()

delete() : void