Copied to clipboard

Flag this post as spam?

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


  • Niek 8 posts 28 karma points
    Dec 03, 2012 @ 10:50
    Niek
    0

    New Media Section: Unable to upload custom Media Types with drag and drop dialog

    Hey all,

    It seems impossible to upload custom Media Types with the new drag and drop dialog.

    Most of the time I create custom media types with additional cropping (Image Cropper) functionality and custom folders that can only contain a certain media type.

    But it seems like the drag and drop dialog can only create the default "File" and "Image" media types. When a user is uploading into a folder that can only contain a certain custom media type, the dialog will upload all the files with succes, but the folder remains empty. There is no warning or error message or option to select a different media type.

    Because the green upload icon is the most prominent button, the user will try this button first to upload something. And this wont work, so it will confuse the user.

    Would it be possible to show a selectbox, so the user can choose what kind of media type he is uploading (and only the valid media types for that folder)? 

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Dec 04, 2012 @ 15:56
  • jonok 297 posts 658 karma points
    Jul 16, 2013 @ 04:54
    jonok
    0
  • David Dimmer 76 posts 134 karma points
    Aug 23, 2013 @ 18:46
    David Dimmer
    0

    Here is the code with missing using statement:

    using umbraco.cms.businesslogic.media;
    
    namespace FyinDotCom.MyCustomFactory
    {
        public class MyCustomImageMediaFactory : UmbracoImageMediaFactory {
            public override string MediaTypeAlias {
                get { return "galleryCrop"; }
            }
        }           
    }
    
Please Sign in or register to post replies

Write your reply to:

Draft