Finding Confluence attachments on file system

Paul Plunkett March 24, 2013

Is there an easy way to find which file(s) in the attachments directory on the file system are associated with an attachment on a page in Confluence?

2 answers

1 accepted

3 votes
Answer accepted
GuilhermeA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2013

Yes there is Paul,

If you have access to the database use this, and change ATTACHMENTNAME to your actual attachmentname:

select attachmentid from attachments where TITLE like '%ATTACHMENTNAME%';

And with this you have the ID, just search for this ID in <confluence-home>/attachments/ and there should be a folder with this number (attachmentid) with a file without extention inside it, rename it and it is your file.

Cheers,

Guilherme

2 votes
twong_atlassian
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 25, 2013

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events