feat: use checksummed filenames for recipe images and clean up old files
All checks were successful
CI / update (push) Successful in 1m13s

Updated recipe image handling to use checksummed filenames for proper
cache busting. When uploading a new image during recipe edit, old image
files (both hashed and unhashed versions) are now properly deleted from
all directories (full, thumb, placeholder).

Changes:
- CardAdd.svelte: Use checksummed filename from upload response
- Edit page server: Add deleteRecipeImage() helper to remove old images
- Edit page server: Delete old images when new image is uploaded
This commit is contained in:
2026-01-15 13:57:03 +01:00
parent ae32db7dfd
commit 5fae01c06d
2 changed files with 44 additions and 3 deletions

View File

@@ -113,7 +113,7 @@ export async function show_local_image(){
}
const result = await response.json();
uploaded_image_filename = result.unhashedFilename;
uploaded_image_filename = result.filename;
upload_error = "";
} catch (error: any) {