We are using FCKEditor in our project and we had this problem.
All the user files like images, documents etc are stored in the application context path.
i.e. /userFiles default folder created by FCKeditor inside the application context.
We can change this path by using property "connector.userFilesPath" but the new path has to be in the context path only.
The portal that we have built has multiple application and we have common area where we store files which is different application altogether which is named as resource and all the applications are pointed to use this resource for storing the files.
Is there anyway we can specify different path and different url in FCK while uploading the images?
Thanks!
Ashish
All the user files like images, documents etc are stored in the application context path.
i.e. /userFiles default folder created by FCKeditor inside the application context.
We can change this path by using property "connector.userFilesPath" but the new path has to be in the context path only.
The portal that we have built has multiple application and we have common area where we store files which is different application altogether which is named as resource and all the applications are pointed to use this resource for storing the files.
Is there anyway we can specify different path and different url in FCK while uploading the images?
Thanks!
Ashish
Re: Customize user files upload URL's + paths
UserPathBuilderImpl has a method called getUserFilesPath() which returns the path where all user files will be stored.It returns the default path i.e /userFiles in the application context which is configured in the properties file default.properties as below.
To overwrite this path we have created a class called UserPathBuilderImpl with method getUserFilesPath() and from this method we can return the path where we want the files to be stored.
The problem with the FCKeditor is that it uses this same method for getting the path for storing the user files as well as for getting the URL while retrieving those files.
So, we created another method in the UserPathBuilderImpl called getUserFilesURL() which will return the URL from where the user images will be picked.
This way we were to able to save user images where we wanted and could also successfully retrieve those images.
Thanks!
Ashish
Re: Customize user files upload URL's + paths
the feature you want is already in the make. We are planning a huge overhaul of the storage system. Checkout ticket #28. The new system will give you any flexibility you want.
sorry for the inconvenience.
Re: Customize user files upload URL's + paths
Thanks for the update.
We are looking forward to the new release.
Thanks !
Ashish
Re: Customize user files upload URL's + paths
If you want try bleeding-edge, you could check out the current trunk and tell us what you think and what we can improve.
The Improments contain:
We provide some default implementations. Check them out.
I'd be really glad to hear from you.
Mike