Skip to content

Inconsistent Image store behaviour #377

Closed

Description

@Orcolom

I noticed that new images are not getting stored in /assets when you drag them and are in "Vault root" mode.

When in Inbox mode, they get added correctly when copy-pasting and drag dropping.
In vault Root mode, they get added correctly when copy-pasting but not when drag dropping.

Activity

  1. Orcolom commented on Jul 11, 2026

    @Orcolom
    Author

    might be related: #132 #199

  2. added
    bug
    on Jul 11, 2026
  3. adibhanna commented on Jul 13, 2026

    @adibhanna
    Contributor

    Fixed in f45e3f8.

    Root cause: dropped files went through importFiles, which copied them to the vault root, while pasted images went through importPastedImage, which uses the unified assets/ folder. importFiles predates the unified assets folder and was never migrated — so in Vault Root mode a dropped image landed right next to your notes, inconsistent with paste. (Inbox mode only masked it because the root sits apart from inbox/.)

    Dropped files now land in assets/ too, so drag-drop and paste behave the same in both Inbox and Vault Root mode. Verified in the app in Vault Root mode: a dropped image is stored at assets/<name> and no longer at the vault root. Existing links are untouched.

    Thanks for the precise report (paste-vs-drag, inbox-vs-root made this easy to pin down)! Ships in v2.13.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions