Meanwhile I read the documentation but I still got a problem:
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
Did you understand the notion of Connector and PathBuilder interface and how the intertact with the properties? This is essential. You have to know where you want to store the files physically and then pick a pathbuilder for.
I understand the API but I can't put the information together. 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
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
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
http://java.fckeditor.net/