# Insert local image into html template

**URL:** <https://discourse.nodered.org/t/insert-local-image-into-html-template/40894>\
**Category:** General\
**Created:** [12 February 2021 20:24 UTC](https://discourse.nodered.org/t/insert-local-image-into-html-template/40894 "2021-02-12T20:24:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 February 2021 09:45 UTC](https://discourse.nodered.org/t/insert-local-image-into-html-template/40894/2 "2021-02-13T09:45:36Z")

</div>

Files should not be served from your desktop.

To serve a file(image/whatever) the file must be in a served location.

This has been asked and answered many times on the forum. There is also a section in the node-red documentation.

Search the forum for httpStatic.

Here is one such result...

> [@httpStatic and image](https://discourse.nodered.org/t/httpstatic-and-image/1485/7):
>
> Aside from the precise location of the settings file, which is important to confirm, when you say: httpStatic: ' home/pi/personal/ ', did you mean: '/home/pi/personal/' - the slash at the front is quite important. Also, you need to restart Node-RED whenever you edit the settings file.

---

_[View the full topic](https://discourse.nodered.org/t/insert-local-image-into-html-template/40894)._
