Either the upload fails, or the Chinese name cannot be accessed by the web. after studying the JCE source code, you can change the method of saving the file name and use a pure number as the file name. The specific modification is as follows, if you have encountered any type of problem, refer to the following: whether it is JCE or CKEDITOR, the problem of the Chinese name file is not solved. either the upload fails, or the Chinese name is uploaded and cannot be accessed by the web. In contrast, JCE is more user-friendly. for example, after a file is uploaded, it is selected by default. you do not need to search for the uploaded file in a small pop-up window. The source code of JCE is studied, and the method of saving the file name is changed. pure numbers are used as the file name.
Go to the joomla installation directory, find components/com_jce/editor/extensions/browser/file. php, and modify lines 1017-1020:
The code is as follows:
// Strip extension
$ Name = WFUtility: stripExtension ($ name );
// Make file name 'web safe'
$ Name = WFUtility: makeSafe ($ name, $ this-> get ('websafe _ mode', 'utf-8 '));
Change
The code is as follows:
$ Name = date ('ymd-His-', time (). rand (999 );
My joomla version is 1.5 and JCE Version 2.1.3. the location of the changes may vary slightly.