Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Thomas Hansen 151 posts 367 karma points
    May 28, 2019 @ 09:51
    Thomas Hansen

    New Media type (image) with different crop


    I have created an new mediatype with a different crop. When I'm trying to render it i am getting this error.

    The value "Umbraco.Web.PublishedModels.Favicon" is not of type "Umbraco.Web.PublishedModels.Image" and cannot be used in this generic collection.
    Parameter name: value

    In my view file i have this:

    IPublishedContent icon = meta.Favicon;

    My media type looks like this:

    enter image description here

    What am I doing wrong..

  • Chris 12 posts 84 karma points
    Jun 11, 2019 @ 08:42

    I have found this bug appears if you select images only in the multiple media picker settings.

    Temporary workaraound:

    You can copy the folder in settings > media types and set the permissions on your new folder to only accept images, then in media create a folder of the new type.

    If you make the multiple media picker point to that folder then the editor can only choose files that have been uploaded to that folder which you have set to only allow images.

Please Sign in or register to post replies

Write your reply to: