- π΅πͺPeru hatuhay Lima
I experienced a similar issue.
- Multilanguage site
- Media document type with Field Mapping Name set to Name.
- Original language media document working OK
- On the translated version each time media translation saved, the media name reverted to filename.
- Change mapping to -Skip Field- issue solved
- π§πͺBelgium andreasderijcke Antwerpen / Gent
@hatuhay The issue you describe, sounds more like π After exposing media image's name field and translating it, it gets overwritten by the default field mapping. Active .
- π§πͺBelgium andreasderijcke Antwerpen / Gent
As for this issue, as somewhere along in the submit process, the new file data is incorrectly injected in the file reference field of the Media entity.
In my case, the filename is injected as target_id instead of the actual file ID. This is visible in $this->entity in \Drupal\media\MediaForm::save() .
Not sure yet where fault originates. - π§πͺBelgium andreasderijcke Antwerpen / Gent
It seems this issue is resolved in 10.2.1 (didn't test in 10.2.0).