Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to disable attachments download in specific space?

Edited
Ollie Guan Community Leader Apr 07, 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 Leader Apr 07, 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 Leader Apr 08, 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 Leader Apr 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
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,392 views 7 29
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