final class FileBag (View source)

Exposes uploaded-file input without interpreting or restructuring its values.

Methods

__construct(array $files = [])

Stores the uploaded-file map for read-only access.

array
all()

Returns the complete uploaded-file map.

array
mixed
get(string $name)

Returns one uploaded-file value or null when the name is absent.

mixed

Details

__construct

__construct(array $files = [])

Stores the uploaded-file map for read-only access.

Parameters

array $files

all

array all()

Returns the complete uploaded-file map.

Return Value

array

get

mixed get(string $name)

Returns one uploaded-file value or null when the name is absent.

Parameters

string $name

Return Value

mixed