Actually, it works A-1.

However, do not drag a local file.

Instead, view the local directory that has the files via your web browser.  
Then drag an image file's link to the droppable zone.

The droppable zone will handle links to files, but not actual files.


On Monday, April 3, 2023 at 10:19:52 PM UTC-3 Zaphod Beeblebrox wrote:

> Looks great! :)
>
> Now... Work your sorcery and create a version to do the same thing, only 
> with locally-stored images!
>
> On Sunday, April 2, 2023 at 7:36:10 PM UTC-4 Charlie Veniot wrote:
>
>> Related TW script *in this post*, just below the video.
>>
>> https://youtu.be/NjE0MHsndE8
>>
>> ```
>> \define droppable-image-actions()
>> <$action-setfield $tiddler=<<actionTiddler>> $field="text" $value=""/>
>> <$action-setfield $tiddler=<<actionTiddler>> $field="_canonical_uri" 
>> $value={{{ [<actionTiddler>split[/]last[]addprefix[./Graphics%20Samples/]] 
>> }}}/>
>> <$action-setfield $tiddler=<<actionTiddler>> $field="type" $value={{{ 
>> [<actionTiddler>split[/]last[]split[.]last[]addprefix[image/]] }}}/>
>> <$action-createtiddler $basetitle={{{ [<actionTiddler>split[/]last[]] }}} 
>> $template=<<actionTiddler>>/>
>> <$action-deletetiddler $tiddler=<<actionTiddler>>/>
>> \end
>>
>> <$droppable actions=<<droppable-image-actions>>>
>> <div style="border:5px double blue;text-align:center;">
>> <p>Drop image here</p>
>> </div>
>> </$droppable>
>> ```
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a96b0748-bdc9-4ebf-92cb-243f8ea98fc3n%40googlegroups.com.

Reply via email to