Skip to content

Kirby 5.1.3

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

Parent class

Kirby\Api\Upload