Try our conversational search powered by Generative AI!

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

Vote:
 

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

 

#81279
Feb 13, 2014 11:01
Vote:
 

Anyone? 

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

#82251
Mar 10, 2014 8:30
Vote:
 

Any help here? Any workarounds?

#85131
Apr 16, 2014 9:37
Vote:
 

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.

#85144
Apr 16, 2014 10:58
Vote:
 

Thanks Marija!

Seems like the [DefaultDragAndDropTarget] decoration helped out!

#85163
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.