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 $upload): string
Parameters
| Name | Type | Default |
|---|---|---|
| $uploadrequired | array |
no default value |
Return type
string