# Cannot GET /test.txt Why can't my node-red recognize the static file and download it from the browser

**URL:** <https://discourse.nodered.org/t/cannot-get-test-txt-why-cant-my-node-red-recognize-the-static-file-and-download-it-from-the-browser/69147>\
**Category:** General\
**Created:** [17 October 2022 12:24 UTC](https://discourse.nodered.org/t/cannot-get-test-txt-why-cant-my-node-red-recognize-the-static-file-and-download-it-from-the-browser/69147 "2022-10-17T12:24:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaoye](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/xiaoye/32/69286_2.png) [@xiaoye](https://discourse.nodered.org/u/xiaoye)\
**Post date:** [17 October 2022 12:24 UTC](https://discourse.nodered.org/t/cannot-get-test-txt-why-cant-my-node-red-recognize-the-static-file-and-download-it-from-the-browser/69147/1 "2022-10-17T12:24:50Z")

</div>

I've placed a file in Node-red's further directory, for example, it's test.txt, but I can't finish downloading it in the browser via [http://localhost:1880/test.txt](http://localhost:1880/test.txt)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/1/51ca9a9159565d2c753e9a742ce0cb7d59af57eb.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/8/58a496fa88cb0e2d26cd336bd905701d537562b9.png)

root@dragino-3e1a15:~/.node-red# ls  
lib node\_modules package.json settings.js static test.txt  
root@dragino-3e1a15:~/.node-red# node-red  
17 Oct 12:23:34 - [info]

# Welcome to Node-RED

17 Oct 12:23:34 - [info] Node-RED version: v3.0.2  
17 Oct 12:23:34 - [info] Node.js version: v12.22.9  
17 Oct 12:23:34 - [info] Linux 5.15.43-draginohp0z arm LE  
17 Oct 12:23:39 - [info] Loading palette nodes  
17 Oct 12:23:45 - [info] Settings file : /root/.node-red/settings.js  
17 Oct 12:23:45 - [info] Context store : 'default' [module=memory]  
17 Oct 12:23:45 - [info] User directory : /root/.node-red  
17 Oct 12:23:45 - [warn] Projects disabled : editorTheme.projects.enabled=false  
17 Oct 12:23:45 - [info] Flows file : /root/.node-red/flows.json  
17 Oct 12:23:45 - [info] Creating new flow file  
17 Oct 12:23:45 - [warn]

* * *

Your flow credentials file is encrypted using a system-generated key.

If the system-generated key is lost for any reason, your credentials  
file will not be recoverable, you will have to delete it and re-enter  
your credentials.

## You should set your own key using the 'credentialSecret' option in your settings file. Node-RED will then re-encrypt your credentials file using your chosen key the next time you deploy a change.

17 Oct 12:23:45 - [warn] Encrypted credentials not found  
17 Oct 12:23:45 - [info] Server now running at [http://127.0.0.1:1880/](http://127.0.0.1:1880/)  
17 Oct 12:23:45 - [info] Starting flows  
17 Oct 12:23:45 - [info] Started flows

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [17 October 2022 14:31 UTC](https://discourse.nodered.org/t/cannot-get-test-txt-why-cant-my-node-red-recognize-the-static-file-and-download-it-from-the-browser/69147/2 "2022-10-17T14:31:21Z")

</div>

Welcome to the forum @xiaoye

Have you set `httpStatic` in .node-red/settings.js? See [Configuration : Node-RED](https://nodered.org/docs/user-guide/runtime/configuration)

---

<div class="post-metadata">

**Author:** ![xiaoye](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/xiaoye/32/69286_2.png) [@xiaoye](https://discourse.nodered.org/u/xiaoye)\
**Post date:** [18 October 2022 01:08 UTC](https://discourse.nodered.org/t/cannot-get-test-txt-why-cant-my-node-red-recognize-the-static-file-and-download-it-from-the-browser/69147/3 "2022-10-18T01:08:08Z")

</div>

Many thanks, I get it.

---

<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:** [1 November 2022 01:08 UTC](https://discourse.nodered.org/t/cannot-get-test-txt-why-cant-my-node-red-recognize-the-static-file-and-download-it-from-the-browser/69147/4 "2022-11-01T01:08:55Z")

</div>

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