Expand my Community achievements bar.

SOLVED

Search Path functionality for file upload

Avatar

Level 3
In AEM 6.5 when using cq/gui/components/authoring/dialog/fileupload for our drag and drop field which we click on pick we get a "Type to Search" field at the top of the dialog where-in we can input the path. However on AEMaaCS it is just a header with "Select Path" text. Is it possible to get the same functionality in cloud?
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Zendarkke,

I think, In Cloud, cq/gui/components/authoring/dialog/fileupload is deprecated and not recommended.


An an alternative - could you please try using granite/ui/components/coral/foundation/form/fileupload instead? 

You can also use granite/ui/components/foundation/form/pathfield

Example:

<imagePath
    jcr:primaryType="nt:unstructured"
    sling:resourceType="granite/ui/components/foundation/form/pathfield"
    name="./fileReference"
    fieldLabel="Image Path"
    rootPath="/content/dam"
    filter="hierarchy"
    required="{Boolean}false" />

Santosh Sai

AEM BlogsLinkedIn


View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @Zendarkke,

I think, In Cloud, cq/gui/components/authoring/dialog/fileupload is deprecated and not recommended.


An an alternative - could you please try using granite/ui/components/coral/foundation/form/fileupload instead? 

You can also use granite/ui/components/foundation/form/pathfield

Example:

<imagePath
    jcr:primaryType="nt:unstructured"
    sling:resourceType="granite/ui/components/foundation/form/pathfield"
    name="./fileReference"
    fieldLabel="Image Path"
    rootPath="/content/dam"
    filter="hierarchy"
    required="{Boolean}false" />

Santosh Sai

AEM BlogsLinkedIn