Try our conversational search powered by Generative AI!

Unable to upload image in a block.



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
        GroupName = SystemTabNames.Content,
        Order = 1
    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?

Nov 22, 2019 1:43

Add this for allwing image in your property


This allows the types that you want editor to permit to add in CMS. YOu can read more about attribute here

Nov 22, 2019 4:59
Bidya Bhusan Hota - Nov 22, 2019 22:23
Thanks a lot. It worked. :)
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.