Image Upload not working | Community
Skip to main content
New Participant
April 11, 2024

Image Upload not working

  • April 11, 2024
  • 3 replies
  • 2634 views

Hi All,

 

I created a page properties, the image upload feature is not working when creating a page. The code is

 

<image jcr:primaryType="nt:unstructured" sling:resourceType="cq/gui/components/authoring/dialog/fileupload" mimeTypes="[image/*]" autoStart="{Boolean}false" allowUpload="{Boolean}false" cropParameter="./imageCrop" ddAccept="image/*" ddGroups="[media]" disableZoom="{Boolean}true" fileNameParameter="./fileName" fileReferenceParameter="./fileReference" fieldLabel="Image" name="./image" jcr:title="Image" useHTML5="{Boolean}true" multiple="{Boolean}false" class="cq-droptarget" cq:showOnCreate="{Boolean}true" rootPath="/content/dam" />

 

There are 3 situations about the above code,

1. Under page properties, when starting to create a page, the code doesn't work. It doesn't react to the mouse click even if the mouse turns into the hand cursor. I can't browse my DAM

2. Under page properties, after creating a page without uploading an image. When I open the same existing page, I am able to select a page via the DAM.

3. The same piece of code works in my component. For instance, I can insert a slideshow, whereby I can upload an image located inside a slide.

 

Can someone help? Thanks!

 

3 replies

EstebanBustamante
New Participant
April 18, 2024

@kevin_gta Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Esteban Bustamante
arunpatidar
New Participant
April 11, 2024

Hi @kevin_gta 
You can not upload image from your local because of following property set false

allowUpload="{Boolean}false"

 

you can use pathfield to browse images in page property

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/page-properties-of-aem-doesn-t-show-image-picker-when-creating-a/m-p/603939 

Arun Patidar
Kevin_GTaAuthor
New Participant
April 11, 2024

I am sorry to cause misunderstanding. I didn't mean to upload an image, just like to select an image from my online DAM directory.

arunpatidar
New Participant
April 11, 2024
Kevin_GTaAuthor
New Participant
April 11, 2024

As regarding the previous post, I took a couple screenshots

1. Not able to browse assets when clicking on "Pick" or "Edit"

 

2. Able to browse assets when clicking on the image icon above "Drop an asset here"