Hi! I need some help for a situation where I cannot change the configuration:
It is FCKEditor 2.6.1
It is integration in Joomla!, but the problem is general:
The situation:
the image path is defined as /images/stories/
the uploaded image-files are uploaded to the root, Flash and FILE are uploaded even stranger, because:
- the server has a folder "domain-name.cms"
- the domain domain-name.de points to this folder
- so when images are uploaded, the filemanager opens in the root and not in /root/images/stories
- when flash is uploaded, a directory domain-name.cmsflash is created
- when file is uploaded, a directory domain-name.cmsfile is created
The reason might be the regex at line 263 to 277 in editor\filemanager\connectors\php\io.php , mainly the functions
SanitizeFolderName( $sNewFolderName ) and SanitizeFileName( $sNewFileName)
as I am not strong in regular expressions, what can I do to keep the "." in the folder name??
I described my problem in the joomlafck-forum as well: http://www.joomlafckeditor.com/forum?fu ... =6&start=6
where I added some more information (output of phpinfo ....)
I am glad if I can get some help!
Fri, 09/05/2008 - 09:52
#1
Re: Upload to Root instead of /images/ when foldername contains
but I helped myself:
in filemanager/connectors/php/config.php, I set the Path manually:
now it works
maybe something for the documentation????
maybe something which should be kept in mind when using preg_match or preg_replace????