External link to a file does not work

170 views
Skip to first unread message

sfra...@gmail.com

unread,
May 5, 2017, 6:21:26 AM5/5/17
to TiddlyWiki
Hello there,

I have used TW5 for some weeks, but now I have a little problem.

I use TiddlyWiki 5.1.13 server on OS X with

tiddlywiki /Users/me/Documents/tw --server 19671

I can open websites URL from TW5.
I can open embedded files (image,pdf,...).
But I cannot open an external link to a file on the local disk:
 - the link does not react when I click on it
 - open link, open link in new tab/window don't work
 - but copy link location, paste and go works
I tried both with Firefox and Safari, with these tiddlers:

file:///Users/me/Documents/tw/myfile.pdf

[ext[Open file|./myfile.pdf]]

<a href="file:///Users/me/Documents/tw/myfile.pdf">My File</a>

I have other applications (Bibdesk) that can open the file in Firefox at the same address.

What might be the problem? I appreciate your help.

SF Rajaona

Mark S.

unread,
May 5, 2017, 9:49:54 AM5/5/17
to TiddlyWiki
Browser security won't let you access a local file. TiddlyWiki on node.js (TON) doesn't have a file server, so non-embedded images and files are not available. You could run a separate file server, but then you would to put a specific address for your special local server. The address would be meaningless if you exported the TW as a free-standing file (unless you kept the file server running also).

IMO, not being able to access local images and files limits the utility of TON. I can only assume that the people using node.js are doing so as a text-only application.  

HTH
Mark

sfra...@gmail.com

unread,
May 5, 2017, 2:31:28 PM5/5/17
to TiddlyWiki
Thank you Mark for your reply. It saves me from trying too hard on this.

As a workaround, I drag the link into a new tab to open in the browser.
I could also drag it into an application in the dock.

SF Rajaona
Reply all
Reply to author
Forward
0 new messages