November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Add this for allwing image in your property
[AllowedTypes(typeof(EPiServer.Core.ImageData))]
This allows the types that you want editor to permit to add in CMS. YOu can read more about attribute here
Hi,
I'm getting image upload failed message (Content type "ImageFile" is not allowed to be created under parent of content type "BannerBlock".
For my home page, I have added a banner block. In banner block, I have an image property. Sharing the code:
public class BannerBlock : SiteBlockData
{
[Display(
GroupName = SystemTabNames.Content,
Order = 1
)]
[CultureSpecific]
[UIHint(UIHint.Image)]
public virtual ContentReference Image { get; set; }
}
I have referred the documentation and EpiAlloy project to create all relevant models\controllers\viewmodels\rendering etc. for my blank project. But still not able to upload the file in the block.
Could someone please guide what could be the reason?