Is there a way to add attachments to my custom entity not as Timeline attachments with annotations.

I want user to upload documents and also make that as required in my form.

Is there a way to achieve this ?