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)
mixed $stream
Stream resource when constructed from one; null for file-path sources
string $path
Resolved file path when constructed from tmp_name; null for stream sources
string $clientFilename
Client-reported filename — $_FILES['name']. Do not trust.
string $clientMediaType
Client-reported MIME type — $_FILES['type']. Do not trust.
int $size
File size in bytes — $_FILES['size']
int $error
Upload error code — one of UPLOAD_ERR_* constants
bool $isUploadedFile
Override for is_uploaded_file() check — set true in tests
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