Hello,
I have two problems/ideas:
1. My idea is to set only one big folder for all files and set allowed and denied extensions for it. I've changed config, where I set only:
but I have error when I'm trying to create link to image.
Also setting everything to Config['UserFilesPath']:
do not work. Is there any solution?
2. I'm trying to clean filename after uploading to server. Simple rename with some preg replace to change national chars to ascii.
I have two problems/ideas:
1. My idea is to set only one big folder for all files and set allowed and denied extensions for it. I've changed config, where I set only:
$Config['FileTypesPath'] = $Config['UserFilesPath'] ; $Config['FileTypesAbsolutePath'] = $Config['UserFilesAbsolutePath'] ; $Config['QuickUploadPath']= $Config['UserFilesPath'] ; $Config['QuickUploadAbsolutePath']= $Config['UserFilesAbsolutePath'] ;
but I have error when I'm trying to create link to image.
Also setting everything to Config['UserFilesPath']:
$Config['FileTypesPath']['File'] = $Config['UserFilesPath']; $Config['FileTypesPath']['Image'] = $Config['UserFilesPath']; ... $Config['FileTypesPath']['Flash'] = $Config['UserFilesPath']; etc.
do not work. Is there any solution?
2. I'm trying to clean filename after uploading to server. Simple rename with some preg replace to change national chars to ascii.

Re: Only one file folder, upload with file name cleaning
I'm affraid that you need to set more configuration options than you did.
However, if you want to preserve the same configuration for each folder - simply assign values to variables, then use them.
I mean:
$AllowedExtensions = array('asf','avi');and then use:
etc.
Try this, if you still get some errors after doing it this way, please tell exactly what errors do you get.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Only one file folder, upload with file name cleaning
More explanation: it is multiuser system, where each user has his own page. So path is dynamic, dependng on login (and some session variables). Right now every user has his own Image, Media File subfolders like:
../userX/Images
../UserX/Media
../UserX/Files
../userY/Images
../UserY/Media
../UserY/Files
. I want to merge them to only one big folder for each user.
../UserX/
../UserY/
and for this big merged folder I'm going to set Allowed and Denied extensions.
Re: Only one file folder, upload with file name cleaning
Assuming that we use FCKeditor 2.5 - change setting for "File" resource type in config.php to:
$Config['AllowedExtensions']['File'] = array('7z', 'aiff', 'asf', 'avi', 'bmp', 'csv', 'doc', 'fla', 'flv', 'gif', 'gz', 'gzip', 'jpeg', 'jpg', 'mid', 'mov', 'mp3', 'mp4', 'mpc', 'mpeg', 'mpg', 'ods', 'odt', 'pdf', 'png', 'ppt', 'pxd', 'qt', 'ram', 'rar', 'rm', 'rmi', 'rmvb', 'rtf', 'sdc', 'sitd', 'swf', 'sxc', 'sxw', 'tar', 'tgz', 'tif', 'tiff', 'txt', 'vsd', 'wav', 'wma', 'wmv', 'xls', 'xml', 'zip') ; $Config['DeniedExtensions']['File'] = array() ; $Config['FileTypesPath']['File'] = $Config['UserFilesPath'] ; $Config['FileTypesAbsolutePath']['File']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'] ; $Config['QuickUploadPath']['File'] = $Config['FileTypesPath']['File'] ; $Config['QuickUploadAbsolutePath']['File']= $Config['FileTypesAbsolutePath']['File'] ;(note: we force sending all files to "root" - $Config['UserFilesPath'] folder)
Next step: modify the following lines in fckconfig.js
(note: all upload dialog boxes will send files to the folder dedicated for "File" resource type - files will be placed in the same folder)
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+