mini\Http\Message\UploadedFile::getClientFilename() Method

public

Signature

public function getClientFilename(): ?string

Returns

?string

Documentation

Retrieve the filename sent by the client.

Do not trust the value returned by this method. A client could send a malicious filename with the intention to corrupt or hack your application.

Implementations SHOULD return the value stored in the "name" key of the file in the $_FILES array.

Source

src/Http/Message/UploadedFileTrait.php:200-202