Is there a way to have multiple/custom upload folders from a single installation of FCKEditor?
I have an app. that I replicate for multiple users (/{root}/{UserApplication}/), each with it's own application name, datasource, etc...
I'd like one installation of FCKEditor @ /{root}/FCKEditor and have the UserFilesPath set from the Application.cfm in the users installation (/{root}/{UserApplication}/application.cfm). I've tried setting it in the users application.cfm and tried passing it as an attribute via CFModule, but cannot get it to work.
Any help would be appreciated.
I have an app. that I replicate for multiple users (/{root}/{UserApplication}/), each with it's own application name, datasource, etc...
I'd like one installation of FCKEditor @ /{root}/FCKEditor and have the UserFilesPath set from the Application.cfm in the users installation (/{root}/{UserApplication}/application.cfm). I've tried setting it in the users application.cfm and tried passing it as an attribute via CFModule, but cannot get it to work.
Any help would be appreciated.
RE: Custom UserFilesPath in CF
Hi John
This works for me - in PHP:
To upload the files in a user specific directory do the following:
in the files:
\FCKeditor\editor\filemanager\browser\default\connectors\php\connector.php
and
\FCKeditor\editor\filemanager\upload\php\upload.cfg
Place the command " session_start(); " at the top just below <?php.
in the files
\FCKeditor\editor\filemanager\browser\default\connectors\php\config.php
and
\FCKeditor\editor\filemanager\upload\php\config.php
Change the lines
// Path to uploaded files relative to the document root.
$Config['UserFilesPath'] = '/UserFiles/';
into
// Path to uploaded files relative to the document root.
$Config['UserFilesPath'] = '/UserFiles/'.$_user.'/' ;
The variable $_user is a sessionvariabele and contains the username in my case. Of course you could use another variable.
The credit for this go to: Frank Pieters
It works perfect for me in PHP - I hope somthing similary can be don in CF
Best Regards
Henrik Stampe - Denmark
http://www.saluki.dk/archive
Re: Custom UserFilesPath in CF
So from what I can tell, FCKEditor just wont support this. It works great if you only have one application on your server...