Discover attachment files
Refactory discovery and add basename prop
Basic support for importing attachments