URL to serve file from html directory

Hi,
I am trying to place a file in the /etc/openhab2/html/ directory and have it served using HTTP but I cann work out the URL to use I have tried:

http://openhab.local:8080/html/file.bin
http://openhab.local:8080/file.bin
# placed under /basicui/static/ directory
http://openhab.local:8080/static/file.bin

I am sure its possible just not sure of the URL and best place to store the file for serving.

Regards

Paul

Default the /etc/openhab2/html/ content routes to http://openhab.local:8080/static
I just created a binfile.bin in the html folder went to http://openhab.local:8080/static/binfile.bin and could download the file.

Again same stuff in a folder http://openhab.local:8080/static/tmp/binfile.bin

All working

2 Likes

That works, thanks
Paul