Hi, Kim,
For me, this works as expected. Both UI looks fine and I don't get any wrong messages.
This is my property definition:
[Display(
GroupName = SystemTabNames.Content,
Order = 50)]
[UIHint(UIHint.Image)]
[DefaultDragAndDropTarget]
[Required]
public virtual ContentReference Image { get; set; }
And I have the ImageFile definition as well:
[ContentType(GUID = "xxx")]
[MediaDescriptor(ExtensionString = "jpg,jpeg,jpe,ico,gif,bmp,png")]
public class ImageFile : ImageData
{
public virtual string Title { get; set; }
public virtual string AlternativeText { get; set; }
// ...
}
Which version of 7.5 are you using? I am on 7.5.1003.0.
Thanks Marija!
Seems like the [DefaultDragAndDropTarget] decoration helped out!
Hi
You can drag and drop an Image to a URL property field - it looks correct in the UI, but when you try to save & publish it - a validation message occurs which says that the field is required (which is correct).
I would expect to be able to drag and drop images to a URL property field which uses the [UIHint(UIHint.Image)] attribute.
Is that a bug and is there a workaround?
Thanks in advance!
/Kim