To clarify, the filename image.png
is set by the browser in the paste event, not by TiddlyWiki. On some browsers, this name is also localized. There is no information included in the event to indicate that this is a browser assigned default filename and not a real filename. This in turn makes it tricky to know if we can override the filename received from the event.
This problem is the reason behind this PR to add a hook allowing plugins to customize the file naming: Add th-readFileCallback hook mechanism by FSpark · Pull Request #6517 · Jermolene/TiddlyWiki5 · GitHub
Another potential core approach that would be more universal is to add in the import UI a checkbox that when checked, never overwrites tiddlers on import and instead adds a suffix to non-unique titles.