Skip to content

Underscores in file names are not sanitize on upload but on renaming #2164

@qwerdee

Description

@qwerdee

Describe the bug
File with an underscore like "image_02.png" can be uploaded without being sanitized. When renaming them underscores are replaced with a dash.

Expected behavior
The same rules should apply to file names when uploading and renaming. So either "image_02.png" should be changed to "image-02.png" on upload or underscores should be allowed in filenames when renaming them.

Screenshots
image

Kirby Version
3.2.5

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions