Repository navigation
Closed
Labels
Description
Bug description
My users are facing the following problem:
If you replace an image, by uploading a new one with a different name, the metadata gets lost.
The editorsdesk would love to use the replacement feature from time to time, because after publishing an article they often find the need to modify/crop/change/whatever an image afterwards again. But as we use several custom metadata fields in the assets blueprint, (a11y, legal, copyright, stuff...) its quite annoying to upload the modified image a second time, to than fill out all theses fields and to then search/find the image in library to change it the article.
Using an image file with the same name is also not an option as mentioned here: #11229
How to reproduce
- Upload an image to the library
- Add some metadata to the image
- Save the image
- Look into the .meta folder -> old.jpg.yaml existing
- Replace the image by uploading a new one using the replace-dialogue (do not click save yet)
- Look into the .meta folder -> old.jpg.yaml and new.jpg.yaml existing
- Save the image by clicking the Save button. (toggle remove old image is on )
- Look into the .meta folder -> new.jpg.yaml existing
- Look into the .meta/new.jpg.yaml file -> metadata are lost
Logs
Environment
Environment
Application Name: DAV
Laravel Version: 11.45.1
PHP Version: 8.3.23
Composer Version: 2.8.10
Environment: local
Debug Mode: ENABLED
URL: dav-av.ddev.site
Maintenance Mode: OFF
Timezone: Europe/Berlin
Locale: de
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: file
Database: mysql
Logs: stack / single
Mail: smtp
Queue: sync
Session: file
Statamic
Addons: 6
Sites: 3 (DAV, JDAV, JUBI)
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.63.0 PRO
Statamic Addons
alpenverein/nginx-utility: dev-dev
el-schneider/statamic-auto-alt-text: 0.3.2
jacksleight/statamic-bard-mutator: 3.0.4
jonassiewertsen/statamic-external-link: 1.9.0
mitydigital/sitemapamic: 3.3.0
thehome/statamic-elasticsearch: dev-es8Installation
Fresh statamic/statamic site via CLI
Additional details
No response
Reacted by Oliver Mesieh and Dominik Föger
Activity