How to display attached images with markdown

I want to display an image(attached to the page) with markdown. From what I looked up on the various portals, the format is:

![Alt text](/path/to/img.jpg)

But, this works for actual links to the image. How do i reference the image that is attached to the page itself.

3 answers

1 accepted

This widget could not be displayed.
Stephen Deutsch Community Champion Aug 08, 2017

It doesn't seem like the Wiki Markup converter has any smart check to determine whether an image is attached to a page or not, so you'll probably have to use the following format:

![](/download/attachments/<page_id>/<filename>)

Thank you for the answer. It worked. Really appreciate your help.

Stephen Deutsch Community Champion Aug 08, 2017

No problem :)

Stephen Deutsch Community Champion Aug 08, 2017

For anybody else coming to this page, the format is actually

![](<contextpath>/download/attachments/<page_id>/<filename>)

so for Confluence Cloud users it would be

 ![](/wiki/download/attachments/<page_id>/<filename>)
This widget could not be displayed.
Stephen Deutsch Community Champion Aug 07, 2017

Hi Apurva,

Could you please let us know which product you are using (Confluence?), which type you are using (Cloud, Server), and if Server, which version?

This widget could not be displayed.

Yes, COnfluence server 5.8

Stephen Deutsch Community Champion Aug 08, 2017

Are you inserting markdown in the "Insert Markup" menu or using a plugin to display it?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published Tuesday in Confluence

Add-on evaluation with confluence templates

Atlassian market place contains number of Apps/Addons which improves the capability of out of the box Atlassian products. It is good to follow a plugin evaluation process before install add-ons. So t...

154 views 12 6
Read article

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