# 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:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sfedo](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sfedo](https://discourse.nodered.org/u/sfedo)\
**Post date:** [12 February 2021 20:24 UTC](https://discourse.nodered.org/t/insert-local-image-into-html-template/40894/1 "2021-02-12T20:24:40Z")

</div>

Hello,  
I'm trying to insert image into my html template. I'm doing this way:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/7/e7c4e7d679f425758cfbd64b96612d810aa1272d.png)

but its not working. How to insert the image??

---

<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.

---

<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:** [27 February 2021 09:46 UTC](https://discourse.nodered.org/t/insert-local-image-into-html-template/40894/3 "2021-02-27T09:46:32Z")

</div>

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