I could not find a feature for this in the attachment macro, so I've created a new improvement for you: https://jira.atlassian.com/browse/CONF-29082
I suggest to vote and add your comment to the ticket to increase the chances to be implemented in the future. I hope this helps! :)
I've created a macro with a drop-down list of fileType to Exclude. If you want, add more type of files in the "enumValues" part of the parameter definition:
## Macro title: Exclude File Type Upload Area
## Macro has a body: N
## Developed by: Name
## Date created: dd/mm/yyyy
## @param fileTypeExc:title=File Type to Exclude|type=enum|enumValues=png,jpeg,bmp,xlsx,xls,docx,doc,pptx,ppt,zip,rar,pdf|default=png|desc=Select type of file to exclude (ask the Confluence administrator, if you want to exclude more than one type of files)
<p><ac:macro ac:name="attachments"><ac:parameter ac:name="patterns">.*.[^($paramfileTypeExc)]$</ac:parameter></ac:macro></p>
Hello Community 👋🏼 I’m Makisa, a product manager on Confluence Server and Data Center. Confluence Server & Data Center 7.0, our latest platform release, is now available and we wanted to shar...
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