I've added a data type based on the Image Cropper and dropped this onto a document, however when creating a new item - I get the dreaded object reference not set error.
As far as I can tell the image cropper is set-up as per other forum posts I have read:
I observed on one of the other posts a suggestion was to add an Upload control and name the parameter the same as the Property Alias, but the upload control doesn't have such a property in 4.7.
On your Media Type, are you sure you've selected "Front Page Banner Image Cropper" and not the default "Image Cropper" datatype? I know that exception can be caused if you don't have any crops defined, which maybe you don't on the default Image Cropper datatype
Yes, I think that is possible (not positive though).
So, can you confirm on your document type you've referenced your custom cropper (Front Page Banner Image Cropper) instead of hte default one (Image Cropper)?
Also, do you have an upload field called umbracoFile on your Document Type?
Your screenshot shows the property on your datatype is called "uploadFile" but in the Image Cropper you have it configured as "umbracoFile" - I would try renaming the property on your doctype to "umbracoFile"
Image Cropper
Hi all,
I've added a data type based on the Image Cropper and dropped this onto a document, however when creating a new item - I get the dreaded object reference not set error.
As far as I can tell the image cropper is set-up as per other forum posts I have read:
I observed on one of the other posts a suggestion was to add an Upload control and name the parameter the same as the Property Alias, but the upload control doesn't have such a property in 4.7.
Any suggestions?
Hi Darryl,
On your Media Type, are you sure you've selected "Front Page Banner Image Cropper" and not the default "Image Cropper" datatype? I know that exception can be caused if you don't have any crops defined, which maybe you don't on the default Image Cropper datatype
Otherwise, can you post the full exception?
-Tom
Hi Tom,
Thanks for your reply.
I meant to add I'm trying to use this with a document type, which I believe is possible - unless you tell me different?
Yes, I think that is possible (not positive though).
So, can you confirm on your document type you've referenced your custom cropper (Front Page Banner Image Cropper) instead of hte default one (Image Cropper)?
Also, do you have an upload field called umbracoFile on your Document Type?
If so can you also post the full exception?
Thanks,
Tom
Hi Tom,
Yep referencing the control I've created and an upload, still no joy, here's the exception:
Here's my document type set-up:
Any ideas?
Yep, think you might have a small typo :)
Your screenshot shows the property on your datatype is called "uploadFile" but in the Image Cropper you have it configured as "umbracoFile" - I would try renaming the property on your doctype to "umbracoFile"
-Tom
D'oh! Dammit, dammit, dammit!
Well spotted, much kudos to you sir!
is working on a reply...