Multiple file upload in dialog

Hello,
I created a custom dialog using the frappe.ui.Dialog Here I want to give a space where users can upload as many files as they want. How can I do it. “Attach field type” only allows one file upload.

Any one to help?