You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Data loss when replacing attachment with same name #2859
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
Create a new db with "Multiple Files"
Create a new note
Attach a file, like sample.jpg
Save
Delete sample.jpg from within the note (don't save)
Attach a new, different file named sample.jpg (NOT the same sample.jpg that was attached previously)
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
giuspen commentedon May 22, 2026
Sorry you lost data because of this problem @JGKle , thanks for reporting it, I will try and sort it out and update here
fixed data loss when replacing attachment with same name in case of m…
giuspen commentedon May 22, 2026
This has now been fixed. The fix will be in v1.7.0 that is going to be released this weekend.
JGKle commentedon May 22, 2026
awesome, thanks!