For some reason I can't get FCK browser to upload to a different directory than the standard /userfiles. My settings are as follows:
fckeditor.properties
For some reason it stores the files in the c:\ root. For example it will create c:\image\test.jpg. If I delete the userFiles entries in the propeties file, it goes back to the webapp directory location. Am I missing something here?
Configuration:
FCKEditor Version: Java 2.5
Container: Jetty
OS: Windows XP
Many thanks!
fckeditor.properties
connector.userActionImpl=net.fckeditor.requestcycle.impl.EnabledUserAction connector.userPathBuilderImpl=net.fckeditor.requestcycle.impl.ServerRootPathBuilder connector.userFilesPath=/userfiles connector.userFilesAbsolutePath=c:/data/userfiles
For some reason it stores the files in the c:\ root. For example it will create c:\image\test.jpg. If I delete the userFiles entries in the propeties file, it goes back to the webapp directory location. Am I missing something here?
Configuration:
FCKEditor Version: Java 2.5
Container: Jetty
OS: Windows XP
Many thanks!
Re: AbsolutePath Setting not working?
connector.userActionImpl=net.fckeditor.requestcycle.impl.EnabledUserAction
connector.userPathBuilderImpl=net.fckeditor.requestcycle.impl.ServerRootPathBuilder
connector.impl=net.fckeditor.connector.impl.LocalConnector
connector.userFilesPath=/userfiles
connector.userFilesAbsolutePath=c:/temp/userfiles
Re: AbsolutePath Setting not working?
you said you got FCK browser to upload to a different directory than the standard /userfile.
I got it too, but the problem now is that the image is not retrieved by the browser (in fact in the preview the image is not loaded).
How can I make the webserver to serve the image that it is hosted NOT in the webapp directory but in a temp directory on the same machine?
For example, using this config:
connector.userActionImpl=net.fckeditor.requestcycle.impl.EnabledUserAction
connector.userPathBuilderImpl=net.fckeditor.requestcycle.impl.ServerRootPathBuilder
connector.impl=net.fckeditor.connector.impl.LocalConnector
connector.userFilesPath=/userfiles
connector.userFilesAbsolutePath=c:/temp/userfiles
the image "horse.jpg" is stored correctly in "c:\temp\userfiles\horse.jpg" and the url used by FCK is "/userfiles/horse.jpg".
But if I request "/userfiles/horse.jpg" in my browser, I get an 404 error.
How to solve?
Configuration:
FCKEditor Version: Java 2.5
Container: Tomcat
OS: Windows XP
Thank u very much for your help,
Kind regards,
Filippo
Re: AbsolutePath Setting not working?
I am also facing a similar problem. Upload & browsing works fine, just the image preview is broken. Did u get it working, by any chance??
Re: AbsolutePath Setting not working?
the connector works as desired. It does what you have configured it for. Upload and browser files from that location. No where is ever stated that it has to serve those to the client. It is your problem/task to serve them to the client.