(tw5.1.9) on node.js ver 0.10.29~dfsg-2 (debian) - unable to display external files on local host

58 views
Skip to first unread message

ch

unread,
Sep 13, 2015, 11:17:48 AM9/13/15
to TiddlyWiki
hi,

i've tried to display external files on local host using this tip:

http://tobibeer.github.io/tb5/#Embedding%20A%20Text%20File

i.e. replacing "http://" with "./", or "file://", etc. but it doesn't work!

using a file with "http://" works fine!

any ideas?

kindly,
christian

PMario

unread,
Sep 13, 2015, 1:32:09 PM9/13/15
to TiddlyWiki
Is there a file server running on localhost?
The TW server function is not intended to be an nginx or apache server. IMO it's for local debugging and develompment.
-m

ch

unread,
Sep 13, 2015, 2:33:51 PM9/13/15
to TiddlyWiki
> Is there a file server running on localhost?
i'm pretty sure that this has nothing to do with this problem... well, i got a samba file server running...

but, what i have found out (reading previous e-mails in this group) - especially this post:

"[TW5]How to use canonical uri field to point to local files" posted on Sept 12

...is, that using "file://" is really *not* an option when running tw on node.js - starting it with:

tiddlywiki mynewwiki --server

see:


..."file://" work differently on browsers, chrome has security restrictions when trying to access the local file system with "file://", however firefox have no problem with it...

i've realised that i want to utilize the "_canonical_uri" feature, but that seems to be broken in 5.1.9 for plain text files (jeremy says that 5.1.10 handles html files, but plain text files still doesn't seem to work in 5.1.10, as another user reported).

however, i got it to work by using a symbolic link to the file i wanted to display... but, the sad is, that i can't use this either because unix/linux symbolic links doesn't work in msys on windows... and i need my wiki to also work on windows... :-(

cheers!
christian

Tobias Beer

unread,
Sep 15, 2015, 6:41:42 AM9/15/15
to TiddlyWiki
Hi ch,

I added a note that this won't work on node.js.

Embedding A Text File @ tb5

Not sure how to best work around this, except perhaps using absolute paths to a fixed ip or network drive.

Best wishes, Tobias.
Reply all
Reply to author
Forward
0 new messages