How to get tiddler's real file path in the disk in nodejs wiki? #6189
-
I found drag&drop a large ( 10M ) PDF file will make this PDF unable to display in the wiki. So I'm gonna write a plugin to provide a button to open this PDF in the system's default image viewer. To do so, I need to get the real path of the tiddler, but So, is there an API to get the tiddler file path? Or do I need to search this file using glob by myself? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
On Node, this is found in the $tw.boot.files object, an index-by-title of fileInfo objects. This is not accessible from the browser. |
Beta Was this translation helpful? Give feedback.
-
Hi @linonetwo browsers now limit the size of data URIs which breaks large embedded PDFs. One workaround is to use the static file serving capability - see https://tiddlywiki.com/#Using%20the%20integrated%20static%20file%20server |
Beta Was this translation helpful? Give feedback.
On Node, this is found in the $tw.boot.files object, an index-by-title of fileInfo objects. This is not accessible from the browser.