PHP Интерфейс ManaPHP\Http\Request\FileInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
getExtension ( ) : string Returns the file extension
getKey ( ) : string Returns the file key
getName ( ) : string Returns the real name of the uploaded file
getSize ( ) : integer Returns the file size of the uploaded file
getTempName ( ) : string Returns the temporal name of the uploaded file
getType ( ) : string Returns the mime type reported by the browser This mime type is not completely secure, use getRealType() instead
moveTo ( string $dst, string | false $allowedExtensions = 'jpg,jpeg,png,gif,doc,xls,pdf,zip' ) Move the temporary file to a destination

Описание методов

getExtension() публичный Метод

Returns the file extension
public getExtension ( ) : string
Результат string

getKey() публичный Метод

Returns the file key
public getKey ( ) : string
Результат string

getName() публичный Метод

Returns the real name of the uploaded file
public getName ( ) : string
Результат string

getSize() публичный Метод

Returns the file size of the uploaded file
public getSize ( ) : integer
Результат integer

getTempName() публичный Метод

Returns the temporal name of the uploaded file
public getTempName ( ) : string
Результат string

getType() публичный Метод

Returns the mime type reported by the browser This mime type is not completely secure, use getRealType() instead
public getType ( ) : string
Результат string

moveTo() публичный Метод

Move the temporary file to a destination
public moveTo ( string $dst, string | false $allowedExtensions = 'jpg,jpeg,png,gif,doc,xls,pdf,zip' )
$dst string
$allowedExtensions string | false