@Mirko : I worked on a plugin that does just that. I have a version that 
works, with some caveats. I plan to revisit and rewrite it when I can find 
the time.

If you want to give it a go, I have uploaded it at 
https://saqimtiaz.github.io/sq-tw/sandbox.html under the name "NodeJS 
import as External Files". Test with care, backup your wiki first.

Notes and caveats:
- it is possible for a file upload to the files folder to fail silently and 
you just end up with the canonical_uri tiddler. I've never experienced this 
and it isn't likely especially if using node.js locally, but it is possible 
due to the way the plugin hooks into the import process. This is the reason 
why I plan to redo this.
- the name of the file is the same as the tiddler name, so recommend not 
removing the file extension
- also there is no support yet for specifying a specific path 
(sub-directory) within the files folder.
- It assumes you are on node, so there will likely be issues if using it in 
a standalone tiddlywiki file.

Hope this helps,
Saq

On Tuesday, June 23, 2020 at 11:34:45 AM UTC+2, Mirko Richter wrote:
>
> Hi Saq, i'm using node.js.
>
> Am Freitag, 19. Juni 2020 10:54:30 UTC+2 schrieb Saq Imtiaz:
>>
>> Mirko: are you running TiddlyWiki on node.js or the single file version?
>>
>> I have a plugin that does this on node.js (with some caveats).
>>
>> On Friday, June 19, 2020 at 10:17:08 AM UTC+2, Mirko Richter wrote:
>>>
>>> Hi!
>>>
>>> Is there an automated way to "delegate" any binaries, that are dropped 
>>> into the TW5-app in the browser, into the "files"-folder, replacing the 
>>> tiddler inside of tw5 with externalized version (e.g. using 
>>> _canonical_uri)?
>>>
>>> Thanks!
>>> Mirko
>>>
>>

-- 
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/a19c899f-a3f2-433f-ae19-d3cdc7cebaafo%40googlegroups.com.

Reply via email to