Copied to clipboard

Flag this post as spam?

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


  • Barry Fogarty 493 posts 1129 karma points
    Feb 10, 2016 @ 11:08
    Barry Fogarty
    1

    Upload custom media type in MediaPicker dialog

    How can I ensure files uploaded via the Upload button in the media picker dialog respects the allowed types rules specified in the media type settings?

    I have a media picker with a start node, which only allows chidren of my custom media type 'Header Images'. This all works fine in the media section, however, files uploaded via the dialog upload button are always the standard 'Image' type. Is there any way to override this behaviour? There used to be a class to inherit from, UmbracoImageMediaFactory, but implementing this does not seem to have any effect for v7 (I'm on v7.3.5).

    Any ideas?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 10, 2016 @ 14:08
    Jeroen Breuer
    101

    Hello,

    There are multiple issues reported about this:

    http://issues.umbraco.org/issue/U4-7003

    http://issues.umbraco.org/issue/U4-7515

    http://issues.umbraco.org/issue/U4-6830

    So I don't think this will currently work. To be honest I think it's best to avoid custom media types because of this. It always gives issues with the uploader.

    Header Images probably has some special crops. It's better to put those crops on the normal Image media type for now.

    Jeroen

  • Barry Fogarty 493 posts 1129 karma points
    Feb 10, 2016 @ 14:58
    Barry Fogarty
    1

    Thanks for chiming in Jeroen. I have upvoted those issues. You are correct -there are specific crops on the header image type, so I think your workaround is the best solution at the moment

Please Sign in or register to post replies

Write your reply to:

Draft