# UI media in NodeRed Dashboard

**URL:** <https://discourse.nodered.org/t/ui-media-in-nodered-dashboard/47222>\
**Category:** Dashboard\
**Created:** [16 June 2021 07:59 UTC](https://discourse.nodered.org/t/ui-media-in-nodered-dashboard/47222 "2021-06-16T07:59:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marwinwijaya](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marwinwijaya/32/23923_2.png) [@marwinwijaya](https://discourse.nodered.org/u/marwinwijaya)\
**Post date:** [16 June 2021 07:59 UTC](https://discourse.nodered.org/t/ui-media-in-nodered-dashboard/47222/1 "2021-06-16T07:59:37Z")

</div>

How to add some pict in NodeRed Dashboard?

I install

> node-red-contrib-ui-media

but i have error when insert the .png file. my error is :

> 16 Jun 14:55:49 - [red] Uncaught Exception:  
> 16 Jun 14:55:49 - TypeError: path must be absolute or specify root to res.sendFile  
> at ServerResponse.sendFile (E:\node-red\node\_modules\express\lib\response.js:425:11)  
> at C:\Users\muham.node-red\node\_modules\node-red-contrib-ui-media\ui\_media.js:288:17  
> at FSReqCallback.oncomplete (fs.js:171:23)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [16 June 2021 10:03 UTC](https://discourse.nodered.org/t/ui-media-in-nodered-dashboard/47222/2 "2021-06-16T10:03:12Z")

</div>

> [@marwinwijaya](#):
>
> 16 Jun 14:55:49 - TypeError: path must be absolute or specify root to res.sendFile

so what did you specify as the path to the file?  
where is the .png file located on the machine running NR?

---

<div class="post-metadata">

**Author:** ![marwinwijaya](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marwinwijaya/32/23923_2.png) [@marwinwijaya](https://discourse.nodered.org/u/marwinwijaya)\
**Post date:** [21 June 2021 02:18 UTC](https://discourse.nodered.org/t/ui-media-in-nodered-dashboard/47222/3 "2021-06-21T02:18:22Z")

</div>

How to configure specify path?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [21 June 2021 08:42 UTC](https://discourse.nodered.org/t/ui-media-in-nodered-dashboard/47222/4 "2021-06-21T08:42:39Z")

</div>

Please export your flow and attach it to a reply. In order to make code more readable and importable it is important to surround your code with three backticks  
`````  
`like this`  
`````

You can edit and correct your post by clicking the pencil icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [21 July 2021 08:43 UTC](https://discourse.nodered.org/t/ui-media-in-nodered-dashboard/47222/5 "2021-07-21T08:43:25Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
