Try our conversational search powered by Generative AI!

Drag and drop to URL property (UIHint.Image) fails?



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!



Feb 13, 2014 11:01


It's a request by a customer, must be a bug?

Mar 10, 2014 8:30

Any help here? Any workarounds?

Apr 16, 2014 9:37

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:

            GroupName = SystemTabNames.Content,
            Order = 50)]
        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.

Apr 16, 2014 10:58

Thanks Marija!

Seems like the [DefaultDragAndDropTarget] decoration helped out!

Apr 16, 2014 12:50
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.