Unable to use drag and drop in AEM 6.3 | Community
Skip to main content
Level 4
Feb 10, 2019 2:48 PM UTC
Solved

Unable to use drag and drop in AEM 6.3

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 &quot;ADD&quot; 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>

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Apr 12, 2019 5:27 PM UTC

That use case not supported.

5 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
Apr 12, 2019 5:27 PM UTC

That use case not supported.

Translate
edubey
Level 10
Feb 11, 2019 5:26 AM UTC

Attach the component ZIP if you can, also avoid using coral 2 and coral 3 together in same dialog

Translate
Gaurav-Behl
Level 10
Feb 10, 2019 5:16 PM UTC

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.

Translate
aembytesAuthor
Level 4
Feb 10, 2019 5:09 PM UTC

Sam, there is no browser error just on save, the JCR changes do not get persisted.

Translate
smacdonald2008
Level 10
Feb 10, 2019 4:29 PM UTC

Are you seeing a browser error when you try this use case?

Translate