We decided to use the editor to allow our various website customers edit their own about us information. The problem we had is that they all share the same file structure so it wasn't possible to hard-code the path into the editor settings.
I added
to each of the config.cfm files.
Then I added
to the page with the editor. Presto! unique user directories for each account.
I added
<cfelseif isDefined("session.userFilesPath")> <cflock scope="session" type="readonly" timeout="5"> <cfset config.userFilesPath = session.userFilesPath> </cflock>
to each of the config.cfm files.
Then I added
<cflock timeout="5" throwontimeout="no" type="exclusive" scope="session"> <cfset session.userfilespath = "/images/#gettoken(variables.domainname, 2, ".")#/"> </cflock>
to the page with the editor. Presto! unique user directories for each account.
Re: Setting unique user folders in ColdFusion