U4-10624 - Replacing image in media does not work. Old image shows in preview and on page

Created by James Menendez 01 Nov 2017, 21:09:19 Updated by Sebastiaan Janssen 21 Feb 2018, 12:43:09

Duplicates: U4-8949

Relates to: U4-11000

We have an item in Media which we have change, we replaced it to a new image in the Media section.

On the page in the backend where the image is used the new image appear.

Also in the database in cmsContentXml the new image in the new folder appears.

We have cleared the cache, removed umbraco.config, resaved the page. Recycled app-pool and rebuilt the index. Still the old image appear when we preview the page and view the page on the website.

Deleting the examine indexes causes the old images to show.

This seemed to begin in Umbraco version 7+

More information:

https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/63505-Replacing-image-in-media-does-not-work-Old-image-shows-in-preview-and-on-page

Comments

Søren Tidmand 08 Jan 2018, 10:31:39

It seems that Umbraco 7+ is handling upload of a new version of a media file (same name) differently than before 7 (probably until 7.5).

In earlier versions of Umbraco Media section it was possible to "re-upload" a new version of a media file (with identical name) directly to the existing media node, but this has changed. Now you need to remove the original file to be able to upload the new ... AND now the new upload does NOT keep the old folder-ID, but instead Umbraco assigns a new folder and folder-ID.

Since the original version of the media file is not being deleted from the server it will still be accessible.

Example: Original link to media file /media/1040/documentation.pdf New link to media file after "re-upload" of the updated version with identical filename to the same media node /media/1134/documentation.pdf

This can be a big issue if you're referring to a documentation pdf or image download with static links - and maybe even when using the media picker.

More information:

https://our.umbraco.org/forum/using-umbraco-and-getting-started/89715-unwanted-change-of-link-to-media#284059


Sebastiaan Janssen 21 Feb 2018, 12:43:09

I'll close this as a duplicate of U4-8949 which has a few workarounds listed.


Priority: Normal

Type: Bug

State: Duplicate

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: