Upload

Description

A file upload.

Protected Properties

string $path
 The temporary path. More...
 
string $remoteName
 The client's name for the file. More...
 
int $status
 The upload's "error" code. More...
 

Public Methods

 __construct (int $status, string $remoteName, string $path)
 
null HttpError getError ()
 Generates and returns an HttpError if the status indicates one took place. More...
 
string getPath ()
 
string getRemoteName ()
 
int getSize ()
 
int getStatus ()
 
string getType ()
 
$this move (string $path)
 

Properties

◆ $path

string $path
protected

The temporary path.

◆ $remoteName

string $remoteName
protected

The client's name for the file.

◆ $status

int $status
protected

The upload's "error" code.

Constructor

◆ __construct()

__construct ( int  $status,
string  $remoteName,
string  $path 
)
Parameters
int$status
string$remoteName
string$path

Methods

◆ getError()

null HttpError getError ( )

Generates and returns an HttpError if the status indicates one took place.

Returns
null|HttpError

◆ getPath()

string getPath ( )
final
Returns
string

◆ getRemoteName()

string getRemoteName ( )
final
Returns
string

◆ getSize()

int getSize ( )
final
Returns
int

◆ getStatus()

int getStatus ( )
final
Returns
int

◆ getType()

string getType ( )
final
Returns
string

◆ move()

$this move ( string  $path)
Parameters
string$path
Returns
$this