On Tuesday, October 29, 2019 at 9:13:34 AM UTC+1, Michael Borgwardt wrote:
>
> I'm running TW on node.js, so storing binary files directly in Tiddlers is 
> unproblematic - they just get uploaded and stored as separate files.
>

As you found out, it is problematic, since the tiddlers directory is meant 
to be used for stuff, that can be used directly by the TiddlyWiki app. A 
pptx file can _not_ be directly used as a tiddler. ... That's the reason, 
why you have problems. 
 

> However, if I embed e.g. a Powerpoint file, how can I actually access it?
>

If you want to use 3rd party files and expect the browser to do, what 
browsers do, you will need to store your ppt files in the *files * 
directory as advised 
<https://tiddlywiki.com/#Using%20the%20integrated%20static%20file%20server> 
in the docs. 

Every file in the files directory will be accessible with 
[ext[./files/filename.ext]]. Depending on the extension and the browser, 
the browser will react in different ways. 
 

> I'm looking for a way to include a download link to the file in the text 
> of another Tiddler. But I can't find out how to do that. If I use a normal 
> link to the file's Tiddler, that just opens.
>

You can use a link like [ext[./files/yourFileName.pptx]] and the browser 
will open the link with a system dialogue, that asks what it should do. 

The drag and drop IMPORT mechanism can only be used for tiddlers. If you 
want to serve binary data, it has to go into the files directory. 

have fun!
mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d407a956-2321-4452-866f-88abe65852e6%40googlegroups.com.

Reply via email to