Is this a known issue and if so, what's the fix for this?
Drag and Drop Image(File upload) when used as first level field it is working fine.
<bannerImage
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/fileupload"
autoStart="{Boolean}false"
class="cq-droptarget"
disabled="false"
fieldLabel="Banner Image"
fileNameParameter="./bannerImage"
fileReferenceParameter="./bannerImageRef"
mimeTypes="[image]"
multiple="{Boolean}false"
name="./bannerImage"
title="Upload Image Asset"
uploadUrl="${suffix.path}"
useHTML5="{Boolean}true" />
But when used as part of Multifield it is not working --- we are able to drag and drop an image from content finder but when we save the dialog, values not saving to JCR.
<mediaitems
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldLabel="Click on "ADD" to add a Media Item"
name="./mediaitems">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container"
name="./multifieldlist">
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<bannerImage
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/fileupload"
autoStart="{Boolean}false"
class="cq-droptarget"
disabled="false"
fieldLabel="Banner Image"
fileNameParameter="./bannerImage"
fileReferenceParameter="./bannerImageRef"
mimeTypes="[image]"
multiple="{Boolean}false"
name="./bannerImage"
title="Upload Image Asset"
uploadUrl="${suffix.path}"
useHTML5="{Boolean}true" />
</items>
</column>
</items>
</field>
</mediaitems>
Solved! Go to Solution.
Views
Replies
Total Likes
That use case not supported.
Views
Replies
Total Likes
Are you seeing a browser error when you try this use case?
Views
Replies
Total Likes
Sam, there is no browser error just on save, the JCR changes do not get persisted.
Views
Replies
Total Likes
Since you're using Coral2 in 6.3 this example would work - Experiencing Adobe Experience Manager - Day CQ: AEM 62 - Touch UI Composite Image Multifield
If you plan to use Coral3, then search with composite multifiled (or nested multifield) + fileupload, you would find a lot of examples to try.
You've both coral2 & coral3 resourcetypes in same dialog, that might be the root cause you are looking for.
Views
Replies
Total Likes
Attach the component ZIP if you can, also avoid using coral 2 and coral 3 together in same dialog
Views
Replies
Total Likes
That use case not supported.
Views
Replies
Total Likes