UI media in NodeRed Dashboard

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)

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

How to configure specify path?

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

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