PHP 클래스 ManaPHP\Http\Request\File

상속: extends ManaPHP\Component, implements ManaPHP\Http\Request\FileInterface
파일 보기 프로젝트 열기: manaphp/manaphp

보호된 프로퍼티들

프로퍼티 타입 설명
$_alwaysRejectedExtensions string
$_file array
$_key string

공개 메소드들

메소드 설명
__construct ( string $key, array $file ) \ManaPHP\Http\Request\File constructor
getError ( ) : string Returns the error code
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 temporary 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
isUploadedFile ( ) : boolean Checks whether the file has been uploaded via Post.
moveTo ( string $dst, string | false $allowedExtensions = 'jpg,jpeg,png,gif,doc,xls,pdf,zip' ) Moves the temporary file to a destination within the application

메소드 상세

__construct() 공개 메소드

\ManaPHP\Http\Request\File constructor
public __construct ( string $key, array $file )
$key string
$file array

getError() 공개 메소드

Returns the error code
public getError ( ) : string
리턴 string

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 temporary 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

isUploadedFile() 공개 메소드

Checks whether the file has been uploaded via Post.
public isUploadedFile ( ) : boolean
리턴 boolean

moveTo() 공개 메소드

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

프로퍼티 상세

$_alwaysRejectedExtensions 보호되어 있는 정적으로 프로퍼티

protected static string $_alwaysRejectedExtensions
리턴 string

$_file 보호되어 있는 프로퍼티

protected array $_file
리턴 array

$_key 보호되어 있는 프로퍼티

protected string $_key
리턴 string