[tw5] Re: How does this macro work to download a binary file?
Oh so I'm barking up the wrong tree! Thanks for clearing that up. I wasn't aware of that. On Friday, 20 July 2018 02:50:23 UTC-4, Jed Carty wrote: > > It isn't a tiddlywiki thing, that is just how anchor tags work. I imagine > that MDN or W3C has some information about it. > > https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/73a087dc-f968-4f60-b771-9930e4ac125c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw5] Re: How does this macro work to download a binary file?
It isn't a tiddlywiki thing, that is just how anchor tags work. I imagine that MDN or W3C has some information about it. https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0899023d-597b-44d4-8561-a46c6c9c62d6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw5] Re: How does this macro work to download a binary file?
So, ;,]addsuffix{ }] }}} download=""> is what it really means? Am I correct? On Saturday, 14 July 2018 12:03:50 UTC-4, Jed Carty wrote: > > One way browsers get around handling incompatible data types is to convert > them into a base 64 representation that uses only basic ascii characters. > Tiddlywiki encodes non-text tiddlers in the same way. Browsers can, give > the correct mime type, treat the base64 encoded string as though it were > binary data for common data types. So to download the binary versions of > the base64 encoded file you can create a download link that points to the > base64 encoded string with the proper prefix describing the mime type and > encoding and it will download the binary file. The macro creates a link > that does exactly that, so when you click on it you get prompted to > download the file. > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3fe65561-0e94-4972-84fe-de0b52576703%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw5] Re: How does this macro work to download a binary file?
One way browsers get around handling incompatible data types is to convert them into a base 64 representation that uses only basic ascii characters. Tiddlywiki encodes non-text tiddlers in the same way. Browsers can, give the correct mime type, treat the base64 encoded string as though it were binary data for common data types. So to download the binary versions of the base64 encoded file you can create a download link that points to the base64 encoded string with the proper prefix describing the mime type and encoding and it will download the binary file. The macro creates a link that does exactly that, so when you click on it you get prompted to download the file. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/88f0c655-67e1-4764-8a0d-c90c1b0d669c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.