Attachment in custom module

Attachment in custom module

Is there a way to attach scanned documents in a custom module? I created a module for assets and would like the portion to be able to attach a vendor invoice. 

Thanks
Rudy