Confluence: File Upload without Drag and Drop

We are running Confluence 5.1 and we'll be upgrading to 5.4 later this spring.

We've had a request from a user to only show the "Browse Files" version of the uploader (pictured) in the attachments macro. They do not want to expose the Drag and Drop uploader.

Is there any easy way to show just this on a page without the drag and drop functionality? We've considering creating a custom macro, but I wanted to check here first.

Thanks!!!

1 answer

2 votes

Hi Danny,

try to use the following javascript code :

<script>
jQuery().ready(function() {
    jQuery(".attachments-drop-zone").hide();
});
</script>

Add this code into COnfluence Administration -> Custom HTML

Hope this helps,

Fabio

Hey Fabio - thanks for providing this. I've confirmed that it indeed removes the drag and drop from the attachments page.

What we're looking for here, though, is a way to hide the drag and drop functionality within the attachments macro itself OR show only the "browse" version of the uploader on a specific page as a standalone macro/feature.

Thanks again!!

Hello Danny,

you can try to embed the provided code in a HTML macro. I didn't try it. https://confluence.atlassian.com/display/DOC/HTML+Macro

Hope this helps,

Fabio

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...

872 views 21 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