How to add attachment from a modal dialog

I open a modal dialog on click of a link (Attach). The modal dialog shows up a section, from that section i need to add attachment.

How can i achieve this?

@AnushaP1329

Can you please check if you can leverage the Attachment Type to meet your requirements?

On click of a link - open a modal dialog which has Attachment Type property in the section that will allow you attach the documents.

Thanks,

Ramesh

@RameshSangili

i am using pega infinity 23 and theme cosmos, i have tried with OOTB section (pyCaseAttachmentsTopWrapper) and with Attach Content control in section, within modal dialog i am not able to attach

And could you pls let me know what is attachment type property?

@AnushaP1329 - Can make use of Attach content directly on the main screen instead of launching different modal dialog on the button click. Multiple modal dialogs are not supported one at a time.

@Priyanka Boga yes, in main screen i am able to attach but my requirement is to attach in modal dialog

Multiple modal dialogs are not supported one at a time.—any other way to achieve this requirement

Thanks,

Anusha

@AnushaP1329 - Can make use of FilePath control to attach the file without any error.

Thank you.