Hello.
I try to set the filemanager- path dynamically (like many others before).
I don't want to set it via URL because this way isn't very save.
The web application runs under JSP. Of course there is a web session containing the username.
The folder path should look like /[username]/images
I hoped it would work this way:
FCKeditor fckEditor = new FCKeditor(request, "KnowledgebaseEditor", "600", "600", "", "", "/fckeditor");
fckEditor.setConfig("connector.userFilesPath", ua.getUsername() + "/images");
but I read that it wouldn't work
Changeing the propertyloader.java will not work because in this file I can't access the JSP Session.
With Java File do have to change?
Wed, 11/25/2009 - 12:00
#1
Re: Dynamic folder path with Java
did you read the documentation (page and JavaDocs)? I have described there everything in detail. Check the link below.
Mike
Re: Dynamic folder path with Java
Hello mosipov.

I must be blind. I've never seen this page before
but I'm sure that I'll find there everything I need.
Thanks for your help.
Re: Dynamic folder path with Java
I changed the files:
- ContextPathBuilder.java
--> getUserFilesAbsolutePath(...)
--> getUserFilesPath(...)
and ServerRootPathBuilder.java
--> getUserFilesPath(...)
The user folder path is stil "userfiles", according to the entry of the default.properties:
# base URL path for the userfiles
connector.userFilesPath = /userfiles
# base system path on the backend for the userfiles
connector.userFilesAbsolutePath = /userfiles
Where am I wrong?
Re: Dynamic folder path with Java
You have to know where you want to store the files physically and then pick a pathbuilder for.
Re: Dynamic folder path with Java
Let's make a deal: I've you got a good example I'll make a implementation for dummies which can be posted on the support page.
Re: Dynamic folder path with Java
Re: Dynamic folder path with Java