There is a good chance that I'm missing something boneheadedly obvious, but I've come from a LAMP background, and am now stuck with IIS and CF.
Am working in a multi-server environment, with FCKeditor at c$\wwwroot\FCKeditor on three different pseudo load-balanced machines.
Obviously, users' documents, images, etc need to be accessable to them no matter the server they are using. /docs is set as a virtual directory on all three machines pointing to a single file server.
So far I've been unable to figure out how to set \FCKeditor\editor\filemanager\browser\default\connectors\cfm\config.cfm and \FCKeditor\editor\filemanager\upload\cfm\config.cfm to allow me to browse and upload files.
setting config.userFilesPath = "\docs\training\includes\" does not seem to work; I get a xlm 500 error.
What am I doing wrong?
Thanks!
Am working in a multi-server environment, with FCKeditor at c$\wwwroot\FCKeditor on three different pseudo load-balanced machines.
Obviously, users' documents, images, etc need to be accessable to them no matter the server they are using. /docs is set as a virtual directory on all three machines pointing to a single file server.
So far I've been unable to figure out how to set \FCKeditor\editor\filemanager\browser\default\connectors\cfm\config.cfm and \FCKeditor\editor\filemanager\upload\cfm\config.cfm to allow me to browse and upload files.
setting config.userFilesPath = "\docs\training\includes\" does not seem to work; I get a xlm 500 error.
What am I doing wrong?
Thanks!
RE: coldfusion, virtual directoris, file browser
You say you get an xml 500 error.
Any details about the error?
What do you see when you browse to http://www.yourserver.com/FCKeditor/edi ... ntFolder=/
(Offcourse you need to point to the correct location of your connector.cfm file)
Is the xml valid?
Any entries in your server log files?
RE: coldfusion, virtual directoris, file browser
The XML error was my fault - badly formated comment I left while mucking about.
Hitting connector.cfm works fine.
If I use the test.html file to upload a file, instead of writing to the fileserver path I specify, it creates a new directory at the root of the webserver named the file server name
<Connector command="GetFoldersAndFiles" resourceType="File">
<CurrentFolder path="/" url="/myfileserver.org/devfiles/includes/File/"/>
<Folders/>
−
<Files>
<File name="AP_HEADER.gif" size="5"/>
</Files>
</Connector>
Writes not to //myfileserver.org/devfiles/includes but to //mywebserver.org/myfileserver.org/devfiles/includes.
How should I go about solving this?
Thanks again!
RE: coldfusion, virtual directoris, file browser
config.serverPath = ""; // use this to force the server path if FCKeditor is not running directly off the root of the application or the FCKeditor directory in the URL is a virtual directory or a symbolic link / junction
I think that's what you need.
Let me know how it works out, please.
RE: coldfusion, virtual directoris, file browser
and config.userfilespath = "\devfiles\includes\";
Which cause the test.html to return the following when clicking the Get folders and files link:
<?xml version="1.0" encoding="utf-8" ?>
- <Connector command="GetFoldersAndFiles" resourceType="File">
<CurrentFolder path="/" url="/devfiles/includes/File/" />
<Error number="103" />
</Connector>
Which is interesting because Ive created File directory - it is there, so if this is pointing to the correct place, there is no need to write the directory.
Thanks again!
RE: coldfusion, virtual directoris, file browser
The problem is that you need to connect to a subfolder of \\myfileserver.org\ .
You cannot create any folders in the root of \\myfileserver.org\ because you are not connected to one of the shared folders on that system.
You should create a shared folder on that server (called userfiles or whatever), and then change your config.serverpath to "\\myfileserver.org\userfiles\";
That should do the trick, no?