Upload multiple pdf files from local machine and store files in DAM.
I am working on one of the requirement where user will upload the pdf files from the local machine. PDF will get store in AEM DAM. Then PDF name will get display on the page.
I have added the multifield in my component and I am using "cq/gui/components/authoring/dialog/fileupload" to browse the PDF files from the local machine and this is working fine but PDF file's binary is not getting stored in the jcr:data so I am not able to store the PDF in DAM.
When item0,item1 will get create at the node level that time PDF binary should get store in respective node.
Is my approach correct or we can achieve this without multifield? I need suggestion to work on this usecase.