class UploadedFile extends UploadedFile (View source)

Traits

Methods

static  void
macro( string $name, callable $macro)

Register a custom macro.

from Macroable
static  bool
hasMacro( string $name)

Checks if macro is registered.

from Macroable
static  mixed
__callStatic( string $method, array $parameters)

Dynamically handle calls to the class.

from Macroable
mixed
__call( string $method, array $parameters)

Dynamically handle calls to the class.

from Macroable
string
path()

Get the fully qualified path to the file.

string
extension()

Get the file's extension.

string
clientExtension()

Get the file's extension supplied by the client.

string
hashName( string $path = null)

Get a filename for the file that is the MD5 hash of the contents.

static  UploadedFile
createFromBase( UploadedFile $file)

Create a new file instance from a base instance.

Details

in Macroable at line line 24
static void macro( string $name, callable $macro)

Register a custom macro.

Parameters

string $name
callable $macro

Return Value

void

in Macroable at line line 35
static bool hasMacro( string $name)

Checks if macro is registered.

Parameters

string $name

Return Value

bool

in Macroable at line line 49
static mixed __callStatic( string $method, array $parameters)

Dynamically handle calls to the class.

Parameters

string $method
array $parameters

Return Value

mixed

Exceptions

BadMethodCallException

in Macroable at line line 71
mixed __call( string $method, array $parameters)

Dynamically handle calls to the class.

Parameters

string $method
array $parameters

Return Value

mixed

Exceptions

BadMethodCallException

at line line 17
string path()

Get the fully qualified path to the file.

Return Value

string

at line line 27
string extension()

Get the file's extension.

Return Value

string

at line line 37
string clientExtension()

Get the file's extension supplied by the client.

Return Value

string

at line line 48
string hashName( string $path = null)

Get a filename for the file that is the MD5 hash of the contents.

Parameters

string $path

Return Value

string

at line line 63
static UploadedFile createFromBase( UploadedFile $file)

Create a new file instance from a base instance.

Parameters

UploadedFile $file

Return Value

UploadedFile