Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Image is not loaded in CMS 8.8

Vote:
 

I'm running version 8.8 and I'm not able to load an image from code.

Code below:

[CultureSpecific]
        [Required(AllowEmptyStrings = false)]
        [UIHint(UIHint.Image)]
        [Display(            
            Order = 3)]
        public virtual ContentReference Image { get; set; }

and in my view:

Im getting 200 on the image but it is not shown, does this has to do with version 8.8 or is it something else? When I look in firebug the path is correct as follows:

/globalassets/test/myimage.jpg

And if I go to the url:

http://mysite.com/globalassets/test/myimage.jpg

The image is shown correctly in firefox but not in IE. And if I try following:

the image is not shown either.

Any help or suggestions much appreciated.

/J

#131947
Aug 10, 2015 15:56
Vote:
 

I would like to add that the image is visible in editmode, but not outside editmode, this clearly feels like an EPiServer bug in 8.8?

/J

#132027
Aug 12, 2015 14:18
Vote:
 

Somehow the content type "Image" was set to be rendered by a specific controller that tried to render the image as HTML, reverted to default setting did the trick.

/J

#132643
Aug 14, 2015 15:03
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.