Looking to create some file paths for the uploader/server browser dynamically depending on the area of the site which the fckeditor is being used in. For example AV would be C:\wwwroot\AV\Images... but if they were using it in the ART area C:\wwwroot\Art\Images.
I know where they are set and have it working if they are set manually. I was wondering if there was any way they could be changed dependant on the are being visited.
Anyhelp is much appreciated.
I know where they are set and have it working if they are set manually. I was wondering if there was any way they could be changed dependant on the are being visited.
Anyhelp is much appreciated.

RE: Coldfusion & Dynamic Filepaths
<cfif ListLen(cgi.script_name, '/') GT 1>
<cfset myArea = "/" & ListFirst(cgi.script_name, '/') & "/">
<cfelse>
<cfset myArea = "/">
</cfif>
<cfparam name="request.FCKEditor" default="#StructNew()#">
<cfset request.FCKEditor.userfilesPath = myArea & "userfiles/">
RE: Coldfusion & Dynamic Filepaths
RE: Coldfusion & Dynamic Filepaths
<cfset myArea = "/final/">
<cfif ListLen(cgi.script_name, '/') GT 2>
<cfset myArea = myArea & ListGetAt(cgi.script_name, 2, '/') & "/">
</cfif>
<cfparam name="request.FCKEditor" default="#StructNew()#">
<cfset request.FCKEditor.userfilesPath = myArea & "userfiles/">
Right?
RE: Coldfusion & Dynamic Filepaths
even if the output of the code on a the page i'm using shows the correct upload directory. Could it be something else i'm doing wrong.