U4-11342 - Linking to media containing more than one upload / cropper property fails

Created by Søren Kottal 16 May 2018, 10:45:00 Updated by Søren Kottal 03 Sep 2018, 13:36:01

I have a few sites, where I extended the file property with an Image Cropper field used for setting preview images of downloadable files.

When I try to link to these files in an RTE, by clicking "Select Media" and choosing the file, the url field in the link overlay is empty.

I inspected the javascript executing all this, and it seems like the url comes from mediaHelper.resolveFile. This method runs through the media item, trying to find properties of the types UploadField or ImageCropper. If it hits the extra property (the one I used for preview images) first, then this is used as the url, and if there is nothing in it, the url will be empty.

I would expect this to get the medias url, like if you do Umbraco.TypedMedia(int).Url.

Would love some feedback on the best way to solve this.


Søren Kottal 03 Sep 2018, 13:35:50


Priority: Normal

Type: Bug

State: Closed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:


Story Points: