PHP 인터페이스 ManaPHP\Http\Request\FileInterface

파일 보기 프로젝트 열기: manaphp/manaphp

공개 메소드들

메소드 설명
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