is there any way to reference a local file without having to specify the absolute path? I know images are picked up from the same folder as the tiddlywiki file, however, I have a lot of reference PDFs that I’d like to have linked.
The use case is simply distribution to other people. I’d like people to be able to use it on a computer (OS independent) or a mobile device and that tiddlywiki would pickup the local reference file linked in a tiddler.
Currently I’m solving this by having the PDFs on my Google Drive and share them with people. But this is not the optimal way for me.
I am using TW with Node.js. I have .tid files on my hard drive and these are accessible through TW. Can PDFs be stored in a folder and them to be rendered as PDFs or to be downloaded by a user?
In the background I am thinking I could share .tid and PDF files in a Dropbox and then collaborators could run their own Node .JS TW and read the same data
I use ImportToExternalFile — 5.1.23 (h/t @saqimtiaz ) - which means binary files drag-and-dropped into my node base TW get saved to the ./files path and matching .tid file created
The files uploaded are all available under the ://site.domain/files/ directory (though I note that node will give a 404 for the directory URLs. Only links to the files directly will work!
This means you can drag any flie from you hard drive to TW and it saves it as a Tiddler which can be rendered as a video, PDF or any other type of file.