own picture disappears after changing the recipe
Description If you edit an existing recipe, your own image will be deleted.
Reproduction Steps to reproduce the behavior:
- Create a new recipe
- Upload your own picture in the recipes folder and name it "full.jpg"
- The thumbnails are then created over time
- Edit the recipe
- The images will be deleted from the recipe folder
Expected behavior The images should be retained after editing.
Actual behavior Images are deleted.
Versions Nextcloud server version: 32.0.1 and 31.0.10 Cookbook version: 0.11.4 Database system: MySQL
Just to make the steps clear: Did you have the image in the JSON registered or did you just put the file there?
I just upload the pictures to the folder of the respective recipe.
OK, this is something not intended/considered so far. Without looking at the exact code, I am even surprised the down-sampled images are actually generated.
I have to look further into this. I am not sure I can do something in a quick manner about it or if it would require a bigger change. The latter planned on the long-time scale anyways, so I would add it to the agenda then.
Until then, as a workaround, it should work if you updated the json file as well. You can do it with a test recipe in the web UI and see the required changes/values there.
Chris