Whether it is JCE or ckeditor, did not solve the problem of Chinese name files, or upload failed, or passed up the Chinese name can not be Web access. In contrast, JCE more user-friendly, such as file upload by default is selected, do not need users in such a small pop-up window to go up and down search just uploaded files. Study the source of the next jce, change the way to save the file name, using pure numbers as the file name.
To Joomla installed directory, find components/com_jce/editor/extensions/browser/file.php, modify 1017-1020 lines:
Copy Code code as follows:
Strip extension
$name = Wfutility::stripextension ($name);
Make file name ' Web safe '
$name = Wfutility::makesafe ($name, $this->get (' Websafe_mode ', ' utf-8 '));
Change into
Copy Code code as follows:
$name = Date (' ymd-his-', Time ()). rand (999);
My Joomla version is 1.5, JCE version 2.1.3, different versions of the modified location may be somewhat different.