cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

own picture disappears after changing the recipe

Open Ilav1 opened this issue 2 months ago • 3 comments

Description If you edit an existing recipe, your own image will be deleted.

Reproduction Steps to reproduce the behavior:

  1. Create a new recipe
  2. Upload your own picture in the recipes folder and name it "full.jpg" 
  3. The thumbnails are then created over time
  4. Edit the recipe
  5. 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

Ilav1 avatar Oct 25 '25 20:10 Ilav1

Just to make the steps clear: Did you have the image in the JSON registered or did you just put the file there?

christianlupus avatar Oct 26 '25 17:10 christianlupus

I just upload the pictures to the folder of the respective recipe.

Ilav1 avatar Oct 26 '25 18:10 Ilav1

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

christianlupus avatar Oct 27 '25 07:10 christianlupus