how to map fileupload resourcetype field in AEM Sling model class in AEM as a cloud service? | Community
Skip to main content
New Participant
September 14, 2022
Solved

how to map fileupload resourcetype field in AEM Sling model class in AEM as a cloud service?

  • September 14, 2022
  • 1 reply
  • 721 views

Hi, I want to know which properties should I be using to get the value from the resourceType : fileUpload

 

for e.g for textFields I am able to get values in my Sling model class by using annotation :

                                @ValueMapValue

                                   private String {"name field of my node"}

 

I am not able to fetch by using "name " field of type fileUpload

 

Please anyone explain me how can I access it in my sling model , I need the  path of the file uploaded

 

Thank you

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi,

Can you please share the node structure, where the file is uploaded or content is authored.

please share component authored values from crx, this will help us to provide guidance.

 

Generally, the valuemap map the properties and values but if you have child node then you need to inject those as type/Resource etc.

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
September 14, 2022

Hi,

Can you please share the node structure, where the file is uploaded or content is authored.

please share component authored values from crx, this will help us to provide guidance.

 

Generally, the valuemap map the properties and values but if you have child node then you need to inject those as type/Resource etc.

Arun Patidar