1: The ckeditor version used is 4.2. Ckfinder is compatible with 2.3.1
2: The source file name is uploaded by default. If the source file name is duplicated, it is supplemented by numbers such as (1 ).
3: the name of the file I want to upload is a date + a random number. On the Internet, it is said that the MISC file is modified, but the file is modified in this place. The upload is okay and the browsing process is incorrect.
4: After debugging, you can find a place to modify:
In fileupload. php, locate row 136, that is, the next row of while (true), and add the following:
While (true) {// modify $ sfilename the added statement $ sfilename = Date ('ymdhis '). rand (100000,999999 ). '. '. $ sextension; $ oregistry-> set ("fileupload_filename", $ sfilename); $ sfilepath = delimiter: combinepaths ($ sserverdir, $ sfilename); If (file_exists ($ sfilepath )) {$ sfilename = ckfinder_connector_utils_filesystem: autorename ($ sserverdir, $ sfilename); $ oregistry-> set ("fileupload_filename", $ sfilename); $ ierrornumber = delimiter;} else {
Where:
$sFileName = date('YmdHis').rand(100000,999999).'.'.$sExtension; $oRegistry->set("FileUpload_fileName", $sFileName);
Is the added sentence, and the rest will not change.