# Getting image in dashboard

**URL:** https://discourse.nodered.org/t/getting-image-in-dashboard/228
**Category:** Dashboard
**Created:** [18 May 2018 09:51 UTC](https://discourse.nodered.org/t/getting-image-in-dashboard/228 "2018-05-18T09:51:52Z")
**Posts on this page:** 1
**Showing post:** 37

<div class="post-metadata">

### Author: ![WillWelker](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/willwelker/32/771_2.png) [@WillWelker](https://discourse.nodered.org/u/WillWelker)
#### Post date: [16 December 2018 05:56 UTC](https://discourse.nodered.org/t/getting-image-in-dashboard/228/37 "2018-12-16T05:56:28Z")

</div>

Just a note about using a relative URL from the Dashboard ui:  
When viewing the dashboard, your browser considers that you are in the 'ui' directory.  
For example:  
[http://192.168.43.106:1880/ui/](http://192.168.43.106:1880/ui/)  
If your settings.js file is set to serve static files in /home/pi/.node-red/static/,  
your browser will consider this static directory as root.  
You need a ../ to move up one directory from 'ui' to root.  
A relative URL from the 'ui' directory would look like this (assuming msg.payload has the image name):

```auto
<img src="../{{ msg.payload }}">

```

---

_[View the full topic](https://discourse.nodered.org/t/getting-image-in-dashboard/228)._
