How can I find very large attachments?

Over time, a lot of our users have been uploading attachments and some of them are quite large. I'm looking to review space usage and find attachments which are over, say, 5 MB in size and if possible older than 6 months; then review them to keep/delete.

Note that I'm aware of attachment size restrictions. What I'm trying to do is search for attachments based on size and possibly date.

2 answers

1 accepted

2 votes

I use the meta data searches.

For example "filesize:[1024 TO 2048]" will find attachments between 1k and 2k in size. Setting the first number to say 1Meg, and the second number to something astronomical is an excellent starting point for "hunt the chunky attachment".

This trick supports searching created/modified dates for attachment as well, but I've not played with them, so don't have an example in mind.

My bookmark is not from Atlassian's docs for a change - http://docs.servicerocket.com/display/ATLASSIAN/Searching+Confluence+-+Advanced+-+Metadata+With+Lucene#SearchingConfluence-Advanced-MetadataWithLucene-BooleanType

This doesn't really serve the intended purpose, imho. I tried this, and lucene compares range based on an alpha and not on an integer. e.g. 8192 TO 9999999999 includes attachments whose filesize starts with the 8,9, or randomly, 10. It will show an 8kB file, but not a 3MB file.

That's perfect, I didn't know meta search exists so that's a good point for me to do more complex things. Thanks a lot for that info.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,691 views 25 10
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you