Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
We have an item in Media wich we have change, we changed it to a new image.
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.
Can anyone explain this magic?
We are using Umbraco 7.2.1
Did you check on the disk, which image is saved ?
Maybe it's browser cache.
Hi Alex, its not browser, if I go to the Media section, the image is there and its clickable.
But when Previewing och Viewing the page where the image is supposed to appear it does not.
I have checked that the file exist on disk also. Same goes for other items in the Media folder, PDF, png and other.
Umbraco.config has been deleted and IIS recycled. Still the wrong URL.
Very strange, is everything fine with permissions ?
Permissions is fine.. And in the database the correct file shows... in this case it is a PDF and we are using the MultiUrlPicker. But its the same with a regular image and MediaPicker.
But when adding the link/file to a page the wrong/old url shows.
It must be cached somewhere in Umbraco.
How did you get url to media file ?
Did you try republish all ?
I have published/unpublished all items.
var multiUrlPicker = child.GetPropertyValue
what is 'child' ?
I'm usually using media like that :
var mediaId = currentPage.GetPropertyValue<int>("image");
var media = Umbraco.TypedMedia(mediaId);
var imageUrl = media.Url;
I am having a similar problem. Whenever I attempt to change an image, the link to the old image still appears. I checked in the page inspector of the browser. The new image link works fine.
Have you tried rebuilding the Examine indexes ?
For performance reasons the Umbraco API first checks the Examine index if it can find a media item there. If not it will query the database.
But if it finds it in the Examine index, and that is not updated then you will see your old image/file.
Anyone found a solution for this?
I'm trying to update my media-item by uploading a new file to it, but it just refuses to use it. It changes the file in the in the upload file window etc, but everything that links to the media-item still uses the old file. Whats up with that? =(
edit: I'm also using 7.2.1
I also got this reported by a client, they are running 6.2.5
It seems to be related to the Lucene Index, if i delete the index, and rebuild it, the media url is retrieved correctly.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted