phpDocumentor

UploadedFile extends ExistingFile
in package

Class UploadedFile

Use this file class to validate that a file was uploaded by and HTTP POST request.

Tags
category

System

subpackage

FileSystem

Table of Contents

$value  : string
Instance Value
__construct()  : mixed
UploadedFile constructor.
asString()  : string
Get the instance value as string.
getAbsolutePath()  : string
Returns the absolute path.
getFilePath()  : string
Returns the absolute file path.
_getRealPath()  : string

Properties

Methods

__construct()

UploadedFile constructor.

public __construct(NonEmptyStringType $absoluteFilePath) : mixed
Parameters
$absoluteFilePath : NonEmptyStringType
Tags
throws
InvalidArgumentException

If the file was not uploaded with an HTTP POST request.

seee

is_uploaded_file

Return values
mixed

asString()

Get the instance value as string.

public asString() : string
Return values
string

getAbsolutePath()

Returns the absolute path.

public getAbsolutePath() : string
Return values
string

getFilePath()

Returns the absolute file path.

public getFilePath() : string
Return values
string

_getRealPath()

protected _getRealPath( $path) : string
Parameters
$path :
Return values
string

Search results