When configuring your filemanager, you might get stuck with the $Config['UserFilesPath'] setting.
UserFilesPath relative to where?!?
The document root, this is the server path that is accessible by web visitors and robots. While it can be the server root, it is commonly set as a secondary directory such as public_html.
Don't forget the UserFilesPath needs a heading slash. A tailing slash is not needed.
E.g. When your website is example.eg and you have your files in 'example.eg/htmlFiles', then your UserFilesPath will be '/htmlFiles'
You don't need to set UserFilesAbsolutePath, but if you do, it must point to the same directory as UserFilesPath does. To get this value, just prepend the server path of your document root to your UserFilesPath.
FCKPlugins by saulmade: http://www.saulmade.nl/FCKeditor/FCKPlugins.php
FCKSkins by saulmade: http://www.saulmade.nl/FCKeditor/FCKSkins.php
FCKSnippets by saulmade: http://www.saulmade.nl/FCKeditor/FCKSnippets.php
Tue, 04/10/2007 - 13:02
#1
RE: HOWTO - UserFilesPath relative to where?!?
I can't get fckeditor to recognise either UserFilesPath or UserFilesAbsolutePath
I have the editor installed in /wwwwroot/default/product and want images
to be uploaded to /wwwroot/clienthome
I have tried to set the following:
<cfset request.FCKEditor = StructNew()>
<cfset request.FCKEditor.UserFilesPath = "../clienthome/images">
<cfset request.FCKEditor.UserFilesAbsolutePath = "/wwwroot/clienthome/images/">
<cfset request.FCKEditor.ServerPath = "/wwwroot/clienthome/images/">
but all of these seem to be getting ignored and the browser is looking
at /wwwroot/default/productImage
I had this working in 2.4 but had to manually edit many of the file browser files
and wanted a more default solution.
Any ideas ?
RE: HOWTO - UserFilesPath relative to where?!
I believe your documentroot is '/wwwwroot' so try UserFilesPath = "/clienthome/images" and leave UserFilesAbsolutePath empty. No idea what ServerPath is, never seen it in the config file (but I use PHP).