Hello
I would like to ask you how to rename a file while uploading if the file has special characters in it. Like if a file name contains space or any special character, it should be replaced with underscore.
If I have to create a plugin to do this, can you help me how can i create a plugin to do this.
Please make sure I cannot change the source code of ckfinder.dll
Thanks
I would like to ask you how to rename a file while uploading if the file has special characters in it. Like if a file name contains space or any special character, it should be replaced with underscore.
If I have to create a plugin to do this, can you help me how can i create a plugin to do this.
Please make sure I cannot change the source code of ckfinder.dll
Thanks
Re: Replace special characters with underscores while upload
But now the problem. i want to show the popup message that the image is renamed, if file is renamed after removing special characters.
Thanks.
Re: Replace special characters with underscores while upload
The only way to do it in this case is to modify _source\Connector\CommandHandlers\FileUploadCommandHandler.cs and add there replacing special characters plus the following line:
(until we create a better solution to allow such customization).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Replace special characters with underscores while upload
Hi,
Could you post the solution? We'd like to use this functionality aswell...
thanks