I use boostnotes on windows at work and on linux at home. I sync using git.
My routine is like this:
When I pull from git on linux machine, images do not appear.
The links appear correct. But the images are not present.
So I replaced the boostnotes storage content with files downloaded from git (as opposed to pull etc.). Still images are not displayed.
I expect the notes to be same when I download / sync up with git on linux.
The images should be displayed if they are present in the attachments/
Is my expectation correct?
Currently images are not displayed.
@ytee Boostnote saves images in /storagepath/images . Did you include /images in your git repository?
@sosukesuzuki , yes I sync all the folders in git. My folder structure is as follows in both Windows, Linux & git:
@ytee Hmm..., I'll try to research this bug.
I can confirm this issue.
Two questions:
The console shows
Failed to load resource: net::ERR_FILE_NOT_FOUND
File "/home/stefan/workspace/notes/attachments/b54522b5-fd1a-480a-9b75-27f583c6b22c
/2606db30.jpg" deleted because it was not included in the content of the note
Markdown is

The image has been added by dragging it to the editor.
any progress here?
Hi,
i think the problem is the following:
1) the path how attachments are referenced in the markdown is platform dependent (stupid me..).
2) When leaving a note (onBlur) the app tries to delete all attachments not referenced in the note (e.g. not needed anymore)
3) because you use different platforms on windows your markdown reference contains \ as separators.. On linux the app expects /
4) due to 3) the app don't recognizes the references in your markdown as attachments -> It deletes the actual attachments because it thinks they are not referenced (e.g. not needed).
Possible solution: make the delete-unused-attachments-feature possible to disable.. that would not fix the issue but at least would be a workaround..
Unfortunately i don't have that much time at the moment.. i will have a look when i can do it
Thanks for the update, I'll keep my fingers crossed. 馃憤
@ehhc , Thanks for the update. I am just eager to have the work around for now because this is part of my regular workflow.
This should be a high-priority bug to resolve.
In order of priority, I would suggest to:
Disable this autoremove attachments feature.
Use a cross-platform way to reference the file (ie: use always forward slash '/' and inside the code do the dirty-work to handle the final os.path)
Make this feature configurable (I would suggest leaving it off by default, but this is just a personal preference)
Thanks @saaguero for #2205, I can confirm your fix works on Windows-Linux, too.
@ytee, could you please confirm as well and close this issue? Thanks a lot.
@xephon2, @saaguero I can confirm that it is working on linux. All the images that were missing before are now visible. I will confirm Windows' side of things tomorrow.
Thank you boostnote team & everyone involved for the awesome work !!
Most helpful comment
This should be a high-priority bug to resolve.
In order of priority, I would suggest to:
Disable this autoremove attachments feature.
Use a cross-platform way to reference the file (ie: use always forward slash '/' and inside the code do the dirty-work to handle the final os.path)
Make this feature configurable (I would suggest leaving it off by default, but this is just a personal preference)