Ticket #5383 (closed New Feature: duplicate)

Opened 5 years ago

Last modified 5 years ago

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

comment:1 Changed 5 years ago by valbosoft

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