PHP 클래스 Phly\Http\UploadedFile

상속: implements Psr\Http\Message\UploadedFileInterface
파일 보기 프로젝트 열기: phly/http 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $streamOrFile, $size, $errorStatus, $clientFilename = null, $clientMediaType = null )
getClientFilename ( ) : string | null
getClientMediaType ( )
getError ( ) : integer
getSize ( ) : integer | null
getStream ( )
moveTo ( string $targetPath )

비공개 메소드들

메소드 설명
writeFile ( string $path ) Write internal stream to given path

메소드 상세

__construct() 공개 메소드

public __construct ( $streamOrFile, $size, $errorStatus, $clientFilename = null, $clientMediaType = null )

getClientFilename() 공개 메소드

public getClientFilename ( ) : string | null
리턴 string | null The filename sent by the client or null if none was provided.

getClientMediaType() 공개 메소드

public getClientMediaType ( )

getError() 공개 메소드

또한 보기: http://php.net/manual/en/features.file-upload.errors.php
public getError ( ) : integer
리턴 integer One of PHP's UPLOAD_ERR_XXX constants.

getSize() 공개 메소드

public getSize ( ) : integer | null
리턴 integer | null The file size in bytes or null if unknown.

getStream() 공개 메소드

public getStream ( )

moveTo() 공개 메소드

또한 보기: http://php.net/is_uploaded_file
또한 보기: http://php.net/move_uploaded_file
public moveTo ( string $targetPath )
$targetPath string Path to which to move the uploaded file.