Opened 14 years ago

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

Change History (1)

comment:1 Changed 14 years ago by Boudewijn van Weert

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy