Search Path functionality for file upload | Community
Skip to main content
Level 2
June 24, 2025
Solved

Search Path functionality for file upload

  • June 24, 2025
  • 1 reply
  • 384 views
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?
Best answer by SantoshSai

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" />

1 reply

SantoshSai
Community Advisor
SantoshSaiCommunity AdvisorAccepted solution
Community Advisor
June 24, 2025

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