Hi!
I am using FCKeditor 2.5 and when I upload images, it always store them in webapp e.g. <webapp>/userprofiles/image folder. Is there any way we can store these images outside webapp? (as images gets lost when redeploy webapp)
Thanks in advance.
I am using FCKeditor 2.5 and when I upload images, it always store them in webapp e.g. <webapp>/userprofiles/image folder. Is there any way we can store these images outside webapp? (as images gets lost when redeploy webapp)
Thanks in advance.
Re: storing images outside webapp (fckeditor 2.5)
Re: storing images outside webapp (fckeditor 2.5)
Thanks a lot Michael!!!
I have sorted this problem by having following properties in fckeditor.properties file:
#Needs to enable user actions (browsing, saving files, creating folders etc) first (for security reason this is disabled by default)
connector.userActionImpl=net.fckeditor.requestcycle.impl.EnabledUserAction
#Needs to change the connector imp from ContextConnector(default) to LocalConnector (connector serving all files from any local path)
connector.impl=net.fckeditor.connector.impl.LocalConnector
#Needs to change user path builder imp from ContextPathBuilder(default) to ServerRootPathBuilder
connector.userPathBuilderImpl=net.fckeditor.requestcycle.impl.ServerRootPathBuilder
#Finally, you can use any path on your server to save images or files
connector.userFilesPath=c:/data/iti/userfiles
connector.userFilesAbsolutePath=c:/data/iti/userfiles
Re: storing images outside webapp (fckeditor 2.5)
This won't work, consult the docs for a 'why'!
Re: storing images outside webapp (fckeditor 2.5)
Thanks for this useful information. I will try to find the answer from the documentation and will come back to this post.
Re: storing images outside webapp (fckeditor 2.5)
Ok, got it Michael.
and connector.userFilesAbsolutePath is the path on server side and fckeditor will use this value to resolve the server-side location of resources.
connector.userFilesPath is the path on client side
Re: storing images outside webapp (fckeditor 2.5)
THANKS!
Re: storing images outside webapp (fckeditor 2.5)
This is the wrong thread. This is not ASP.