Image not saved on image node
Hi,
I am using AEM 6.1 and I want to save an image in the page properties of a page. I've created an additional tab and my dialog snippet looks like this:
<image
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/fileupload"
autoStart="{Boolean}false"
class="cq-droptarget"
fieldLabel="Hero Image"
fileNameParameter="./image/fileName"
mimeTypes="[image]"
multiple="{Boolean}false"
name="./image/file"
uploadUrl="${suffix.path}"
useHTML5="{Boolean}true"/>
I can drag&drop an image from the asset rail and an 'image' node is created underneath the page's 'jcr:content' node but there is no 'fileReference' attribute saved to the 'image' node.
Is there anything missing? Or am I doing something wrong?
I have the same problem with and without installing Service Pack 1 for 6.1
Any help is greatly appreciated. Thanks,
Alex