# Uploading images to dashboard from windows

**URL:** <https://discourse.nodered.org/t/uploading-images-to-dashboard-from-windows/9102>\
**Category:** Dashboard\
**Created:** [17 March 2019 19:26 UTC](https://discourse.nodered.org/t/uploading-images-to-dashboard-from-windows/9102 "2019-03-17T19:26:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sakura](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@sakura](https://discourse.nodered.org/u/sakura)\
**Post date:** [17 March 2019 19:26 UTC](https://discourse.nodered.org/t/uploading-images-to-dashboard-from-windows/9102/1 "2019-03-17T19:26:49Z")

</div>

Hello, I'm trying to upload an image into a template node in node red, Though I'v changed httpStatic to:

```auto
httpStatic: 'C:\\images', 

```

and uncommented:

```auto
httpAdminRoot: '/admin',

```

in settings.js file and I restarted Node Red but it didn't work.  
Could anyone tell me what I am doing wrong ?

This is my testing flow

```auto
[{"id":"d41e6e2e.32de3","type":"function","z":"7e315e54.b418c","name":"Convert info to image","func":"\nreturn msg","outputs":1,"noerr":0,"x":410.0173645019531,"y":305.3264021873474,"wires":[["4707d1b7.c63c2","d8509296.ba789"]]},{"id":"4707d1b7.c63c2","type":"ui_template","z":"7e315e54.b418c","group":"e1c5a186.41af2","name":" HTML Template","order":3,"width":"3","height":"3","format":"<p><img style=\"display: block; margin-left: auto; margin-right: auto;\" src={{msg.payload}} width=\"128\" height=\"128\"/></p>","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":804.0173492431641,"y":306.3264021873474,"wires":[[]]},{"id":"d8509296.ba789","type":"debug","z":"7e315e54.b418c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":851.0972442626953,"y":207.00000715255737,"wires":[]},{"id":"dfbc3481.f6b438","type":"inject","z":"7e315e54.b418c","name":"","topic":"","payload":"/n.jpg","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":199.1006622314453,"y":228.40625715255737,"wires":[["d41e6e2e.32de3"]]},{"id":"e1c5a186.41af2","type":"ui_group","z":"","name":"Lamp","tab":"18f3acca.3bcee3","order":1,"disp":true,"width":"6","collapse":false},{"id":"18f3acca.3bcee3","type":"ui_tab","z":"","name":"Field","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

```

And I'm having this error on the browser [![enter image description here](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex026/uploads/nodered/original/2X/b/b43e76f4bc6adfcbae7004889f7f9585375b31c5.png)](https://i.stack.imgur.com/6HjGl.png)

---

<div class="post-metadata">

**Author:** ![sakura](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@sakura](https://discourse.nodered.org/u/sakura)\
**Post date:** [17 March 2019 21:49 UTC](https://discourse.nodered.org/t/uploading-images-to-dashboard-from-windows/9102/2 "2019-03-17T21:49:24Z")

</div>

Actually I was using the wrong file, and not the .node-red/.. file
