# Media mapper behavior

**URL:** <https://forum.litium.com/t/media-mapper-behavior/595>\
**Category:** Questions\
**Tags:** media\
**Created:** [February 15, 2019, 10:38am UTC](https://forum.litium.com/t/media-mapper-behavior/595 "2019-02-15T10:38:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![emilsjog](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@emilsjog](https://forum.litium.com/u/emilsjog)\
**Post date:** [February 15, 2019, 10:38am UTC](https://forum.litium.com/t/media-mapper-behavior/595/1 "2019-02-15T10:38:01Z")

</div>

I’ve noticed that the number of files started to increase and looked into the media mapper behavior and saw this.

1. Add a image that gets mapped to an article. The file is moved and it looks fine.
2. Add a new image with the same articlenumber again.
3. The second file is moved to the folder that are configured in the media mapper. But only the latest are used. But both files are still stored.

Bug or expected behavior? I thought that the file was supposed to be replaced.

Add-On: Media-Mapper  
Litium version: 7.1

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [February 15, 2019, 11:16am UTC](https://forum.litium.com/t/media-mapper-behavior/595/2 "2019-02-15T11:16:57Z")

</div>

As I remember MediaMapper does not suppose to delete any file if you add with same Id.  
So it is expected behaviour.

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [February 15, 2019, 11:29am UTC](https://forum.litium.com/t/media-mapper-behavior/595/4 "2019-02-15T11:29:13Z")

</div>

As I heard now it might be a bug, it suppose to replace the file.  
You can report a bug on this om docs please.

---

<div class="post-metadata">

**Author:** ![emilsjog](https://avatars.discourse-cdn.com/v4/letter/e/ec9cab/32.png) [@emilsjog](https://forum.litium.com/u/emilsjog)\
**Post date:** [February 15, 2019, 11:35am UTC](https://forum.litium.com/t/media-mapper-behavior/595/5 "2019-02-15T11:35:16Z")

</div>

> [@steve.redstorm](#):
>
> As I heard now it might be a bug, it suppose to replace the file.  
> You can report a bug on this om docs please.

A bug has been reported, [Login](https://docs.litium.com/support/bugs/bug_details?id=45048)
