Expand my Community achievements bar.

SOLVED

On Page property cq/gui/components/authoring/dialog/fileupload now working

Avatar

Level 7

While creating page I have made this image mandatory it is appearing somewhat like this I dont know why. Even "Clear" , "Pick" button is not working. 

Ronnie09_0-1677578495408.png

 

Am I doing something wrong in here?

1 Accepted Solution

Avatar

Correct answer by
Level 4

Hi @Ronnie09 Please try adding these properties.

Shivam153_0-1677581527675.png

Thanks

Shivam

View solution in original post

4 Replies

Avatar

Community Advisor

Hi @Ronnie09 ,

 

Try to use like below:

<image
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/fileupload"
allowUpload="{Boolean}false"
autoStart="{Boolean}false"
class="cq-droptarget"
fieldLabel="Required Image"
fileNameParameter="./imageName"
fileReferenceParameter="./fileReference"
mimeTypes="[image]"
multiple="{Boolean}false"
name="./imgReference"
title="Upload Image"
uploadUrl="${suffix.path}"
useHTML5="{Boolean}true"/>

It will appear like this

ChitraMadan_0-1677579825656.png

 

Avatar

Correct answer by
Level 4

Hi @Ronnie09 Please try adding these properties.

Shivam153_0-1677581527675.png

Thanks

Shivam

Avatar

Level 3

Are you using the coral version of the widget? It will cause trouble if you mix old&new widgets. Please refer to the docs here:

 

https://developer.adobe.com/experience-manager/reference-materials/6-5/granite-ui/api/jcr_root/libs/...

 

It takes a bit of trail & error until you figure out which attributes need to be set and which can be left out.

Avatar

Community Advisor

@Ronnie09 

check /libs/granite/ui/components/foundation/form/fileupload/render.jsp and compare all properties added to this node. All properties need to be adjusted according to this jsp file