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).
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.
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
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?
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
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
is working on a reply...