Save to attachments when dragging images from Microsoft Teams and other apps into Obsidian

Use case or problem

If I drag an image from Microsoft Teams into Obsidian it pastes this: ![image](blob:https://teams.microsoft.com/97d40bbc-c97f-42fd-9390-5bd658fe376c) which renders to the broken image link icon. It looks like the Drag and Drop data actually has the image file stored in it (see screenshot). Maybe this can be added to the Drop logic to grab this image from the data when dragged into Obsidian? Then I could drag from teams instead of right-clicking and using Copy Image (and having the issue about with the base64 string)

I believe this potentially could work from other apps too and not just Microsoft Teams depending on how they store the image information in the drag and drop data.

1 Like