Version CKfinder 3.0
Hi, for those who want to avoid spaces in IMAGE file names when uploading with CKfinder, the complete solution.
1- Open file "config.php" of ckfinder (ckfinder/config.php)
2- You have to change line 299 from false to true ($config['ForceAscii'] = true;) (doing this, you are configuring the system to change special characters and accents on the upload, but not changing spaces yet...)
3- Open this files (for php4 and php 5 respectively);
ckfinder\core\connector\php\php4\Utils\FileSystem.php
ckfinder\core\connector\php\php5\Utils\FileSystem.php
4- In ckfinder\core\connector\php\php4\Utils\FileSystem.php find line 257, you will see this:
'û' => 'u', 'þ' => 'th', 'ð' => 'dh', 'æ' => 'ae', 'µ' => 'u', 'ĕ' => 'e',
You have to add the space mod like this:
'û' => 'u', 'þ' => 'th', 'ð' => 'dh', 'æ' => 'ae', 'µ' => 'u', 'ĕ' => 'e', ' ' => '_',
AND...
On line 283 do the same
5- In ckfinder\core\connector\php\php5\Utils\FileSystem.php find line 235, you will see this:
'û' => 'u', 'þ' => 'th', 'ð' => 'dh', 'æ' => 'ae', 'µ' => 'u', 'ĕ' => 'e',
You have to add the space mod like this:
'û' => 'u', 'þ' => 'th', 'ð' => 'dh', 'æ' => 'ae', 'µ' => 'u', 'ĕ' => 'e', ' ' => '_',
AND..
On line 261 do the same
Thats all, now you upload the 3 files you changed to your server. From now on your files will be clear for apache.
Regards from Argentina
Walter
Hi, for those who want to avoid spaces in IMAGE file names when uploading with CKfinder, the complete solution.
1- Open file "config.php" of ckfinder (ckfinder/config.php)
2- You have to change line 299 from false to true ($config['ForceAscii'] = true;) (doing this, you are configuring the system to change special characters and accents on the upload, but not changing spaces yet...)
3- Open this files (for php4 and php 5 respectively);
ckfinder\core\connector\php\php4\Utils\FileSystem.php
ckfinder\core\connector\php\php5\Utils\FileSystem.php
4- In ckfinder\core\connector\php\php4\Utils\FileSystem.php find line 257, you will see this:
'û' => 'u', 'þ' => 'th', 'ð' => 'dh', 'æ' => 'ae', 'µ' => 'u', 'ĕ' => 'e',
You have to add the space mod like this:
'û' => 'u', 'þ' => 'th', 'ð' => 'dh', 'æ' => 'ae', 'µ' => 'u', 'ĕ' => 'e', ' ' => '_',
AND...
On line 283 do the same
5- In ckfinder\core\connector\php\php5\Utils\FileSystem.php find line 235, you will see this:
'û' => 'u', 'þ' => 'th', 'ð' => 'dh', 'æ' => 'ae', 'µ' => 'u', 'ĕ' => 'e',
You have to add the space mod like this:
'û' => 'u', 'þ' => 'th', 'ð' => 'dh', 'æ' => 'ae', 'µ' => 'u', 'ĕ' => 'e', ' ' => '_',
AND..
On line 261 do the same
Thats all, now you upload the 3 files you changed to your server. From now on your files will be clear for apache.
Regards from Argentina
Walter