Opened 15 years ago
Closed 15 years ago
#5383 closed New Feature (duplicate)
java: create userfilepath according to chosen directory
Reported by: | Boudewijn van Weert | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
In the file browser, I've created a virtual file directory (in this case called "screens") that points to another file system directory. What I'd want is in case of choosing that virual directory, the userfilepath also changes. I've managed this by overriding the GetResponse class, and add the following line in the constructor:
if ("/screens/".equals(currentFolder)) constructedUrl = <my new userfilepath>
This works fine, it would be nice if this could somehow be plugable/ configurable. It would also be nice if this could be configured for several subdirectories.
I tried to do this by overriding ServerRootPathBuilder.getUserFilesPath, but then the returned path is "<userfilepath>/file/screens/<myFile>", while what I need is "<userfilepath>/<myFile>"