How to "Using the integrated static file server"?

131 views
Skip to first unread message

npin...@gmail.com

unread,
Feb 11, 2021, 10:59:18 AM2/11/21
to TiddlyWiki
I have 2 deployments of tiddlywiki:

The one using the docker image is working normally. I have a `files` directory  and I am able to have image links in my tiddler such as the below.  The images (pdf, etc) display correctly.
  • [img[./files/test.jpg]]

The one on IIS using nodejs is not working.  I have the same folder structure but the images links are not working.  I can see the image when I go to `localhost/tw/files/test.jpg` but they will not populate in the tiddler. Is there anything that has to be enabled or different when hosting on IIS using Windows versus a linux?


PMario

unread,
Feb 11, 2021, 3:59:44 PM2/11/21
to TiddlyWiki
Hi,
I think there is a configuration problem with the IIS server. If you use IIS, you should better serve static files using IIS instead of the node server.
How did you set up your IIS node setting? ... Do you use a MyApp subdirectory?

-mario

npin...@gmail.com

unread,
Feb 11, 2021, 9:07:10 PM2/11/21
to TiddlyWiki

Hi @PMario,

I followed the IIS setup guide on tiddlywiki.com.  Yes I used the MyApp subdirectory directions.

I am not using it to serve static files per say, but the way I display images/pdfs/etc... in my tiddlers is like this --> [img[./files/test.jpg]

I use tiddlywiki as a personal notebook and have a large directory of PDFs, Images, files etc.  I use external links to display them from tiddlyiwki.

A sample tiddler is:

--------------------------
!TEST

//this is a test tiddler//

This is how you display an image in tiddlywiki

[img[./files/test.jpg]
--------------------------

PMario

unread,
Feb 12, 2021, 3:56:01 AM2/12/21
to TiddlyWiki
Hi,
I did test it with http://localhost/MyApp/   see the trailing slash! It worked that way, but don't ask why  :/
-m
Reply all
Reply to author
Forward
0 new messages