In case anyone comes across this thread, experiencing the same issues I had... I thought it would be helpful to post my solution. After a bit more research I came to the understanding that Tiddlywiki doesn't have the ability to serve local files. This is a feature that is somewhat overlooked since it is, normally, handled by an internet facing web server. However, in my use case - deployed on my laptop - I had no need of a web server.
I ended up installing Nginx... which is light with a small footprint. After installing, I created a simple config file to utilize tiddlywiki through a proxy and define a file root for my pdfs and images:
/etc/nginx/sites-enabled/tiddlywiki.conf:
server {
listen 80;
server_name localhost;
# vhost specific logs
access_log /var/log/nginx/tiddlywiki.access.log combined;
location / {
proxy_pass
http://127.0.0.1:4444;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /pdf/ {
root /opt/sync/wiki/;
}
location /images/ {
root /opt/sync/wiki/;
}
}
Now, the common tags:
<a href="/pdf/CumalaTechnicalInfo.pdf" target="_blank">Cumala Technical Info</a>
[ext[Cumala Technical Info|/pdf/CumalaTechnicalInfo.pdf]]
Work as expected...
Hopefully this helps someone else...
Daniel