Opened 6 years ago

Closed 6 years ago

#5383 closed New Feature (duplicate)

java: create userfilepath according to chosen directory

Reported by: valbosoft Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:


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>"

Change History (1)

comment:1 Changed 6 years ago by valbosoft

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.
© 2003 – 2015 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy