OokTech / TW5-Bob

A plugin that makes tiddlywiki a multi-user wiki on node
BSD 3-Clause "New" or "Revised" License
217 stars 28 forks source link

unable to reference hyperlinks for files #82

Open bakhosfares opened 5 years ago

bakhosfares commented 5 years ago

Hi. i am referencing files running on network shares example report1 [[click here|file://\10.0.0.3\reports\report 1.pdf]] (even if rename it and remove the spaces; still doesn't work or if i reference a locally stored file like so: Click here [[Report|file://C:\Downloads\Report.pdf]] to see the latest report. always fail. i am only able to reference http links but i need to reference files. is there a way i can achieve this. (please note, if i run the wiki as a flat file without going through the web server, i don't have an issue. only when i run on the server using the EXE provided here) hope i have given you enough information thanks a lot

bakhosfares commented 5 years ago

I am running on windows. Sorry should have mentioned it earlier.

inmysocks commented 5 years ago

Due to differences in how opening a single html file and using a server work Bob (and the normal tiddlywiki node server) doesn't have the same access to the file system that an html wiki has.

There is some documentation in control panel -> Bob Settings -> Bob documentation -> Serving files, you can see the tiddler here also: https://github.com/OokTech/TW5-Bob/blob/master/Documentation/Serving%20Files.tid

The documentation needs some work, but the main thing is you have to set the root folder that is being served and then things inside that folder are available. But this isn't accessing your file system directly, it is accessing it through a server, so the files are served on urls.