How to hide Download All links for attachments in Confluence
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Purpose
Confluence generates a Download All link for the Attachments Macro, as well as on the View Attachments screen for Pages and Spaces. If your Confluence instance has many large attachments, this can cause performance issues, and you might want to hide the link to prevent users from downloading all attachments on a page or in a space.
Solution
- Click, then General Configuration
- Click Stylesheet, then the Edit button
Add the following to the Global Stylesheet
a.download-all-link { display: none !important; } a#download-all-link { display: none !important; }
- Save
You can alternatively just disable Download All on a space by space basis by adding the above CSS to individual Space Stylesheets instead:
- Go to the space and choose Space Tools > Look and Feel from the bottom of the sidebar
- Choose Stylesheet then Edit.
- Paste the above CSS into the text field.
- Save