Skip to content

Data loss when replacing attachment with same name #2859

Closed

Description

@JGKle

Version, Operating system
Windows 11, CherryTree 1.6.3

Describe the bug
Replacing an attachment with another (updated) attachment of the same name leads to data loss (attachment appears to be updated but old attachment remains)

To Reproduce

  1. Create a new db with "Multiple Files"
  2. Create a new note
  3. Attach a file, like sample.jpg
  4. Save
  5. Delete sample.jpg from within the note (don't save)
  6. Attach a new, different file named sample.jpg (NOT the same sample.jpg that was attached previously)
  7. Double-click sample.jpg in the note. It's supposed to be the second file you just attached, but it's still the previous one that was supposed to have been deleted & replaced.

I lost a fair amount of data this way, because after attaching to CT, I assumed CT had the updated content, only later realizing it was just re-saving the old/stale version that I had deleted from the note.

Activity

  1. giuspen commented on May 22, 2026

    @giuspen
    Owner

    Sorry you lost data because of this problem @JGKle , thanks for reporting it, I will try and sort it out and update here

  2. giuspen commented on May 22, 2026

    @giuspen
    Owner

    This has now been fixed. The fix will be in v1.7.0 that is going to be released this weekend.

  3. JGKle commented on May 22, 2026

    @JGKle
    Author

    awesome, thanks!

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions