Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Caglar 23 posts 94 karma points
    Apr 05, 2021 @ 10:25

    The select button of the photo selection does not work

    Hi all,

    I want to add a image for my grid. But select button is not working. Why happing?

    Firstly I'm click to insert image

    enter image description here

    after, I'm selecting image but select button is not working.

    enter image description here

    When I clicked select button, I got error in script side like this

    enter image description here

  • Caglar 23 posts 94 karma points
    Apr 05, 2021 @ 11:39

    Hi all,

    I found a solution;

    It is necessary to make a change in the updateControlValue method in umbraco.controller.js.

    New method;

    function updateControlValue(selectedImage) {
            // const doGetThumbnail = $scope.control.value.focalPoint !== selectedImage.focalPoint
            //     || $scope.control.value.image !== selectedImage.image;
            // we could apply selectedImage directly to $scope.control.value,
            // but this allows excluding fields in future if needed
            $scope.control.value = {
                focalPoint: selectedImage.focalPoint,
                coordinates: selectedImage.coordinates,
                udi: selectedImage.udi,
                image: selectedImage.image,
                caption: selectedImage.caption,
                altText: selectedImage.altText
            // if (doGetThumbnail) {
            $scope.thumbnailUrl = getThumbnailUrl();
  • Søren Gregersen 441 posts 1884 karma points MVP 2x c-trib
    Apr 05, 2021 @ 13:33
    Søren Gregersen


    I have never seen the issue you are describing. Is there a newer version of umbraco, you could update to?

    If not, or it doesn't fix the issue, you should create an issue here if it persists.

    I would not suggest editing the umbraco files, since they can get overrwritten when you restore packages from nuget.

Please Sign in or register to post replies

Write your reply to: