Is it possible to get the actual file stored on the file system for an attachment programatically in a Java plugin? i.e. versioned attachments seem to exist on the file system in a location such as
I haven't seen a way to get this path in the Attachment object--the urlPath, downloadPath and exportPath don't give me anything useful for this.
I believe there should be a way, as the Confluence CLI plugin has such a function: https://bobswift.atlassian.net/wiki/display/CSOAP/Documentation#Documentation-getAttachment
Would that work for you?
there are different storages for files, on the filesystem or in the database. So getting the concrete path depends on the storage strategy and is not always the same.
For filebased storages the directory structure is described here. Hope this helps.
Hello Community, Jessica here from the Confluence product marketing team! Today I wanted to get your takes on project planning –– what works, what doesn’t, how do you know if you’re doing it r...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs