For example, I have an attachment to xwiki page. How is possible to get (via velocity or groove script at this page) real full path for this attachment at filesystem?
There is no public API to do that but if it’s a short term need you can use one of the following :
using Groovy (which does not care about public/private), access the private field
storageFilefrom the attachment content instance (given by
Thanks! That is what I need! I will try to use.
Finally I got it!
Need to write (groovy):
rzlt = doc.getAttachment("TestingData.xls").getAttachment().getAttachment_content().storageFile.getAbsolutePath()
Thanks ! I added a warning.