Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable attachments download in specific space?

Ollie Guan
Community Champion
April 7, 2021

Hello Community,

I find how to disable the download function globally in this post, but I have further needs:

1.How to disable attachments download in specific space

2.It would be better if the download function of some users or user groups can be disabled in this specific space. We need other users to still be able to download, such as space administrators. 

 

Version: Confluence DC 6.15.9

Looking forward to your help ^_^

1 answer

1 accepted

1 vote
Answer accepted
Ollie Guan
Community Champion
April 7, 2021

I tried the download button in "Preview", it can be disabled directly through Space Page Layout, but if the attachment list is still there after the user enters through More-->Attachments, the user can directly save it locally. How do I disable it here?

Ollie Guan
Community Champion
April 8, 2021

Finally we hide this button by the following way

<Space Tools--Look and feel--Layout--Content Layouts---Main Layout>

#if ($userAccessor.hasMembership('confluence-administrators', $helper.action.remoteUser.name))
#else
    <script type="text/javascript">
    AJS.toInit(function(){
AJS.$('#view-attachments-link').hide();
    });
</script>
#end
Ollie Guan
Community Champion
April 12, 2021

More modifications to this scene, I recorded in this article, I hope it will be helpful to you

https://community.atlassian.com/t5/Confluence-articles/How-to-disable-attachment-downloading-exporting-printing-and/ba-p/1661171

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events