# How to access the local storage from template node

**URL:** <https://discourse.nodered.org/t/how-to-access-the-local-storage-from-template-node/93121>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [13 November 2024 15:56 UTC](https://discourse.nodered.org/t/how-to-access-the-local-storage-from-template-node/93121 "2024-11-13T15:56:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xlameee](https://avatars.discourse-cdn.com/v4/letter/x/4da419/32.png) [@xlameee](https://discourse.nodered.org/u/xlameee)\
**Post date:** [13 November 2024 15:56 UTC](https://discourse.nodered.org/t/how-to-access-the-local-storage-from-template-node/93121/1 "2024-11-13T15:56:53Z")

</div>

Hello

I have stored some images on my local storage I need to used them in a table  
currently "item.logoUrl" is a link to a website where this image is, but I have those images in my local storage. How do I point the img tag to use the images from my local storage they are in /data/logos

```auto
<template v-slot:item.direction="{ item }">
  <div class="container">
	<img :src="item.logoUrl" :alt="logo" />
  </div>
</template>

```

---

<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 November 2024 16:08 UTC](https://discourse.nodered.org/t/how-to-access-the-local-storage-from-template-node/93121/2 "2024-11-13T16:08:38Z")

</div>

> [@xlameee](#):
>
> How do I point the img tag to use the images from my local storage

You need to "serve them" so they are available to Node-RED.

Either adjust your node-red settings.js to include a `httpStatic` entry so they can be served, or serve them using `http-in` -\> file-node -\> `http-response`

---

<div class="post-metadata">

**Author:** ![xlameee](https://avatars.discourse-cdn.com/v4/letter/x/4da419/32.png) [@xlameee](https://discourse.nodered.org/u/xlameee)\
**Post date:** [14 November 2024 21:48 UTC](https://discourse.nodered.org/t/how-to-access-the-local-storage-from-template-node/93121/3 "2024-11-14T21:48:43Z")

</div>

> [@Steve-Mcl](#):
>
> httpStatic

that's works perfectly thanks

---

<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:** [28 November 2024 21:49 UTC](https://discourse.nodered.org/t/how-to-access-the-local-storage-from-template-node/93121/4 "2024-11-28T21:49:42Z")

</div>

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