Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to search attachments on Confluence file system?

Hi, I would like to search for attachments (by file extension) within Confluence. For example, if I want to search all Excel spreadsheets ending with *.xls, I can perform the /.*xls.*/ within the advance search. However, the search will yield over thousands of results. Although there are filters I can use to narrow down the results, I won’t be able to see anything about the file sizes. 

For many systems, I can use the Linux command line to obtain similar results. However, when running find . -type f -name \*.xls within the Confluence parent directory (above the attachments folder), zero results are returned. Does this mean Confluence doesn’t upload file attachments to /confluence-data/attachments? If Confluence doesn’t upload the files there, how come the attachment folder is by far the largest directory on the server?


du -hs * | sort -rh | head -5

848G    sandbox

148G    attachments

5.1G    index

1.1G    webresource-temp

837M    plugins-osgi-cache

2 answers

0 votes
Srinatha T Atlassian Team May 26, 2022

@hoa pham  The files are not stored with the name as it displays on the page. It will be stored as 1 , 2 like that. 

In order to identify the location of the attachment you will have to apply some math . It is not straight forward.

Go though the below page to understand how attachments are stored. 



Srinath T

0 votes
Srinatha T Atlassian Team May 26, 2022

Hi @hoa pham ,

Welcome to Atlassian community. 

The attachments are stored on the server . Try the steps mentioned on the below URL, it should work. The files are stored in attachment directory under home directory. 


Srinath T

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

902 views 11 26
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you