node-red / cookbook.nodered.org

Node-RED Cookbook
http://cookbook.nodered.org
Apache License 2.0
84 stars 34 forks source link

Feedback on 'Serve a local file' #51

Open jabberwo opened 5 years ago

jabberwo commented 5 years ago

How to determine the path for the file?

knolleary commented 5 years ago

Which path are you referring to?

In that recipe, the File node is hardcoded with the full path to the file you want to serve. This is the path on the local file system.

The URL you can then access the file from is determined by the HTTP In node. In the recipe, the node has been configured with the path /hello-file. This means the full url to access the file http://localhost:1880/hello-file.