# Node-red-contrib-smb issue

**URL:** <https://discourse.nodered.org/t/node-red-contrib-smb-issue/67358>\
**Category:** General\
**Created:** [5 September 2022 15:35 UTC](https://discourse.nodered.org/t/node-red-contrib-smb-issue/67358 "2022-09-05T15:35:20Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [6 September 2022 07:28 UTC](https://discourse.nodered.org/t/node-red-contrib-smb-issue/67358/5 "2022-09-06T07:28:13Z")

</div>

This demo is a more complete demo...

> [@Unable to download files from the browser](https://discourse.nodered.org/t/unable-to-download-files-from-the-browser/51314/6):
>
> Then you will need to list the files in the directory & present them as download links. Something like... Result... Flow... [{"id":"f31a598d.9fd2c8","type":"function","z":"553814a2.1248ec","name":"Set base path","func":"//restrict to c:\\temp\\\nvar basePath = flow.get(\"basePath\");\nvar filename = msg.req.params.fn;\n\n\nif(filename.includes(\"..\\\\\")){\n msg.payload = \"Illegal file path\";\n msg.statusCode = 405;//not allowed\n return [null, msg];//fire ou…

Again, you will need to adjust parts of it to make it read files from a specific directory on YOUR device (i.e. not a random windows type folder)

---

_[View the full topic](https://discourse.nodered.org/t/node-red-contrib-smb-issue/67358)._
