AnsweredAssumed Answered

How get current folder name in Share?

Question asked by vescudero on Aug 29, 2013
Latest reply on Aug 30, 2013 by vescudero

I want to get the name of the current documentLibrary folder when upload a document for to use in template flash-upload.get.html.ftl:


I have the following folder structure:

– Folder1
– Folder2
– Folder3

when enter a folder (for example, Folder1) I get the following path


and when I upload a document in this folder I would like to get the name of the current folder, in this case Folder1.

Is there a way to get the name of the current folder? Using javascript or freemarker. Pay attention that script flash-upload.get.js is executing on server not in client.

If using the param on flash-upload.get.html.ftl this returns the string documentLibrary but isn't I need.