Customized "Add Attachment" form

Hi Guys,

Is there a way to inherit the same functionalities of “Add attachments” form and do customized restrictions there? (e.g. allowing defined types,…)

thanks,
Rosy