Unable to delete file with brackets in filename via ckeditor/kcfinder
If you try to delete a file inside ckeditor via kcfinder you get an "Unknown error." if the file name contains brackets. Those brackets are generated during upload if a file with the same name already exists (e.g foo(1).jpg
).
Steps to reproduce:
- Open a form which contains a text field with ckeditor (e.g. create an event)
- Click on the link button of the ckeditor toolbar
- Click on "Browse Server" to open kcfinder
- Download a file via its context menu
- Upload this downloaded file again
- Note that the file is uploaded with brackets in its name
- Try do delete this file via its context menu
- Note message "Unknown error." and that the file has not been deleted
So in short you can not delete files which were renamed during upload because of already existing file names.