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

Is it possible to download a file by clicking on the image if it is linked to the file? Edited

Hi, calling for help with an issue in Confluence.

Use-case/requirement: User should be able to download a pdf file once he/she clicks on a button in Confluence page. It should not give preview or open the file directly on the page, but ask to save/open.

Our solution: We created a button kind of image in and embedded the pdf file. To avoid showing the toolbar we chose the option to hide the toolbar.

Problem: The problem with the drawio macro is that there is a gap automatically formed before the next line or just below this button/image. We could not contain text line immediately.

Looking forward to some help on thisCOKE project`1.png

1 answer

0 votes
Diego Atlassian Team Mar 19, 2020

Hello @Ganesh_Kumar_Vary !

It surely is possible for you to create a download button in a Confluence page. There is even the possibility of you using a simple image as the button. There is no need for you to resort to the usage of a macro such as

Here is a .gif of how to achieve this:


The text explanation follows:

  1. Go to the page which contains the attachment
  2. Click the paperclip at the top left corner (this will take us to the attachments page for that page)
  3. Click to preview the desired attachment
  4. Click with the right mouse button on the Download button at the top right corner
  5. Select to Copy Link Location
  6. Go to the page where you need to place the download button
  7. Enter edit mode
  8. Upload or select an image to be used as a button
  9. Select the image
  10. Click the LINK option
  11. Select Web Link
  12. Wait a few seconds
  13. Paste the link you copied earlier
  14. Click save
  15. Publish the page



I hope this helps you out, Ganesh! Looking forward to your reply.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,559 views 6 7
Join discussion

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