On Monday, March 9, 2020 at 4:24:27 PM UTC+3:30, Saq Imtiaz wrote: > > > > On Monday, March 9, 2020 at 1:15:44 PM UTC+1, Donald Coates wrote: >> >> okay my commute home brought some revelation. The nodejs server isn't >> limited by *what* files it can server but by *where* it can serve files >> from. So it can not serve files from outside the tiddler folder or a >> subdirectory of it. As the static file page referenced by Saq indicates, >> if given the address localhost:8080/images/image.jpg the nodejs server will >> only look in a subdirectory of the tiddler folder called images. Even >> though the tiddlywiki.files tells the server the files are outside the >> directory, the address it is giving points to a subdirectory inside the >> tiddler directory and the files are not there. AFAIK there isn't any way >> to point it to outside of the tiddler directory to serve the file. >> > > This is my understanding as well. Regardless of the fact that > tiddlywiki.files can "load" files from other paths, if you want to serve a > static file using the node.js server it needs to be in the "files" > subfolder of the wiki folder. In addition, the "images" subfolder is > probably also supported as it is mentioned here: > https://tiddlywiki.com/#ExternalImages > images was tested and it does not work! Seems only files folder work here.
> > > In other words, there is a different logic for what files can be "loaded" > via tiddlywiki.files versus what static file paths can be served by the > integrated static file server. > This seems true! -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ef217131-32b3-4c50-9dac-3271a4481ec4%40googlegroups.com.

