I am using FCKeditor v2.4.2 with CF MX 7.0.1 on linux. Everything is configurated and working well ith sample02_mx.cfm, except image upload. My folders are set up as /home/admin/sites/fckeditor, and fckeditor is my baseurl. When I upload an image it creates a new folder called "siteImages" right off /home/admin. It then uploads the file correctly, and you can select it, but it doesn't return with the image, just a red "x". It doesn't matter how I set <cfset Application.userFilesPath = "/userfiles/"> or <cfset application.FCKeditor.userFilesPath = "/userfiles/">, and yes they are "cflocked", and are in fact set. I am certain the error is NOT in my reading the docs, but rather, somewhere in the connector. Many other posts here seem to indicate other similar probles with the image pathing. Itried the v2.4 connector.cfm, as well as a mod recommended by vash20 on 2007-01-19. No luck with either. I ave also done a search through all the code I could for "siteImages", no luck there either. I'm getting frustrated, and running out of ideas. Has anyone got this working in 2.4.2? Please help....
Wed, 05/30/2007 - 13:26
#1
RE: FCKeditor v2.4.2 ColdFusion userFilesPath
RE: FCKeditor v2.4.2 ColdFusion userFilesPath
Please make sure that you are using the v2.4 connector. Maybe flush your cache.
RE: FCKeditor v2.4.2 ColdFusion userFilesPath
Re: FCKeditor v2.4.2 ColdFusion userFilesPath
I have been working on this problem now for over a month, and cannot find a solution. I filed it as a bug (#499), and it was ultimately rejected as "Invalid". I am really confused and would appreciate ny help anyone can provide. Thanks.
Below (between the bars) is my configuration information:
==============================================================================
I have a development server running CentOS and CFMX 7. My website root for Apache is /home/admin/sites, I created a folder /home/admin/sites/fckeditor_test, and extracted all of v2.4.2. I followed the wiki "ColdFusion Integration" to the letter.
<!--- Application.cfm --->
<html>
<!--- Establish Application Frame And Client Management --->
<cfapplication name = "FCKeditor"
clientmanagement = "No"
setclientcookies = "Yes"
sessionmanagement = "Yes"
sessiontimeout = "#createtimespan(0, 2, 0, 0)#"
applicationtimeout = "#createtimespan(0, 2, 0, 0)#"
setdomaincookies = "No" >
<cfset request.FCKeditor = StructNew()>
<cfset request.FCKeditor.userFilesPath = "/fckeditor_test/userfiles/">
</html>
fckconfig.js
var _FileBrowserLanguage = 'cfm';
var _QuickUploadLanguage = 'cfm';
config.enabled = true; in both config.cfm under filemanager
==============================================================================
Everything works except image management. With configurations as shown above my images are uploaded successfully to /home/admin/sitesImage. Then, of course, they shown up as a red x in the viewer, because it is pointing to the place I specified in Application.cfm.
Then, I got this response from alfonsoml:
Have you tried setting "serverPath"?
from config.cfm:
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
So, I did the following:
On my server, my test version is v2.4.2 and is located at /home/admin/sites/fckeditor_test/
In config.cfm I set:
config.serverPath = "/home/admin/sites/fckeditor_test/userfiles/";
In Application.cfm, I set:
<cfset request.FCKeditor = StructNew()>
<cfset request.FCKeditor.userFilesPath = "/marcfiles/">
When I clicked on the "Insert/Edit Image" icon, the "Image Properties" dialog opened fine. I clicked "Browse Server", the "Resources Browser" opened, and immediately the server created /home/admin/sites/fckeditor_test/userfiles/Image/
Continuing, I clicked "Browse", and selected a picture from my local computer. It was called "pc122323.jpg". I clicked "Upload", and the file was successfully placed in the empty "Image" folder previously created. I then clicked on the picture to return to the "Image Properties" dialog. The picture did not show in the preview window, only a red "X". The reason why is that the URL is set to /marcfiles/Image/pc122323.jpg
This is where my problems appear. Do I still have a setting wrong somewhere?
alfonsoml responded again with:
If serverPath is used it must contain the physical path to the userFilesPath.
Setting them to diffent elements of course will lead to troubles.
Although I truely appreciate his responses, I'm afraid I still don't understand which parameter is set wrong.
Can someone please help? I love this product, and really want to get this feature running.
Thanks,
Marc
Re: FCKeditor v2.4.2 ColdFusion userFilesPath
Try placing an application.cfm file in the connectors/cfm folder. In the application.cfm file either, set the name in the cfapplication tag to that of the main application or include your main application.cfm file. The reason setting the application/session/request scopes do not work is that the connector performs a asynchronous call directly to the connector.cfm file which causes it to ignore any request/session/application variables set in your main application.cfm.
HTH.
Best Regards,
Donnie