Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
after, I'm selecting image but select button is not working.
When I clicked select button, I got error in script side like this
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, id: selectedImage.id, udi: selectedImage.udi, image: selectedImage.image, caption: selectedImage.caption, altText: selectedImage.altText }; // if (doGetThumbnail) { $scope.thumbnailUrl = getThumbnailUrl(); //} }
Hi,
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 https://github.com/umbraco/Umbraco-CMS/issues if it persists.
I would not suggest editing the umbraco files, since they can get overrwritten when you restore packages from nuget.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
after, I'm selecting image but select button is not working.
When I clicked select button, I got error in script side like this
Hi all,
I found a solution;
It is necessary to make a change in the updateControlValue method in umbraco.controller.js.
New method;
Hi,
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 https://github.com/umbraco/Umbraco-CMS/issues if it persists.
I would not suggest editing the umbraco files, since they can get overrwritten when you restore packages from nuget.
is working on a reply...