mini\Http\Message\UploadedFile class

Documentation

PSR-7 UploadedFileInterface implementation.

Constructed from $_FILES data (via HttpDispatcher) or manually for testing.

Inheritance

Implements: Psr\Http\Message\UploadedFileInterface

Uses Traits: mini\Http\Message\UploadedFileTrait

Properties (8)

protected mixed $stream

Stream resource when constructed from one; null for file-path sources

protected ?string $path

Resolved file path when constructed from tmp_name; null for stream sources

protected ?string $clientFilename

Client-reported filename — $_FILES['name']. Do not trust.

protected ?string $clientMediaType

Client-reported MIME type — $_FILES['type']. Do not trust.

protected ?int $size

File size in bytes — $_FILES['size']

protected int $error

Upload error code — one of UPLOAD_ERR_* constants

protected bool $isUploadedFile

Override for is_uploaded_file() check — set true in tests

protected bool $moved

Whether moveTo() has been called (PSR-7: must throw on second call)

Methods (11)

Documentation missing

Documentation missing

Retrieve a stream representing the uploaded file.

Move the uploaded file to a new location.

Copy a stream source to the target path

Move a file-path source to the target path.

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Documentation missing

Source

src/Http/Message/UploadedFile.php:11-32