Open commands. php in the editor/filemanager/connectors/php directory and find the FileUpload function.
|The code is as follows:||Copy code|
$ SExtension = substr ($ sFileName, (strrpos ($ sFileName, '.') + 1 ));
$ SFileName = rand (0,100). ".". $ sExtension;
Here, the rand function can change the rename rules as needed.
Another solution is to use the iconv function to encode and convert the file name. However, there is still a problem of duplicate names. Therefore, it is best to rename the image file name uploaded by Fckeditor.