Upload::filename()
Sanitize the filename and extension based on the detected mime type
Upload::filename() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.
Upload::filename(array{name: string, tmp_name: string} $upload): string
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $uploadrequired | array{name: string, tmp_name: string} |
no default value | Entry of the $_FILES array |
Return type
string