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)?
using umbraco.cms.businesslogic.media;
namespace FyinDotCom.MyCustomFactory
{
public class MyCustomImageMediaFactory : UmbracoImageMediaFactory {
public override string MediaTypeAlias {
get { return "galleryCrop"; }
}
}
}
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)?
Custom media types are not supported: http://issues.umbraco.org/issue/U4-698
You can try this: http://our.umbraco.org/projects/website-utilities/multiple-file-upload/bugs/20286-Support-for-custom-Media-Types
Jeroen
Hi Niek,
Flavio has a fix for this problem in this post - http://our.umbraco.org/forum/core/general/35018-umbraco-49-default-upload-custom-media-types
Here is the code with missing using statement:
is working on a reply...