# Httpstatic image path

**URL:** <https://discourse.nodered.org/t/httpstatic-image-path/22067>\
**Category:** Dashboard\
**Created:** [21 February 2020 17:22 UTC](https://discourse.nodered.org/t/httpstatic-image-path/22067 "2020-02-21T17:22:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chucksteele](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@chucksteele](https://discourse.nodered.org/u/chucksteele)\
**Post date:** [21 February 2020 17:22 UTC](https://discourse.nodered.org/t/httpstatic-image-path/22067/1 "2020-02-21T17:22:15Z")

</div>

Embarrassed to ask, but I'm stumped. Windows 10 Pro. Standard installation.  
In settings.js:  
httpStatic: '/images/',  
In console:  
C:\images  
Img path in Template:

Nada in browser. I thought httpStatic '/images/' was the path, requiring only the image name? (and I have tried progressing further up the path i.e. '.node-red/images/image.png', etc.) without any success. The confusing thing is it worked previously, then started this weird behavior....

Any ideas?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [22 February 2020 13:00 UTC](https://discourse.nodered.org/t/httpstatic-image-path/22067/2 "2020-02-22T13:00:15Z")

</div>

that should be fine as long as you haven’t changed any of the other paths.

> [@chucksteele](#):
>
> I have tried progressing further up the path i.e. '.node-red/images/image.png', etc.

That isn’t “up” the path from \images of course.

You might check manually to see if you made a typo?

---

<div class="post-metadata">

**Author:** ![chucksteele](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@chucksteele](https://discourse.nodered.org/u/chucksteele)\
**Post date:** [22 February 2020 16:35 UTC](https://discourse.nodered.org/t/httpstatic-image-path/22067/3 "2020-02-22T16:35:55Z")

</div>

Bizarre...  
In the settings, I have httpStatic: '/images/'; in console, it shows as "C:\images"  
I thought '/images/' was relative to NR?  
I made a copy of images under "C:", and boom! the image displays.  
So maybe I'm confused on the 'images' path relative to NR?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [22 February 2020 16:55 UTC](https://discourse.nodered.org/t/httpstatic-image-path/22067/4 "2020-02-22T16:55:04Z")

</div>

The `httpStatic` path should be an absolute path. If you use a relative path, it will be relative to the working directory of the Node-RED process. A path beginning with `/` will always be treated as an absolute path. If you want it to be relative you'd start it with `./`

---

<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:** [23 March 2020 17:06 UTC](https://discourse.nodered.org/t/httpstatic-image-path/22067/5 "2020-03-23T17:06:34Z")

</div>

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