Map attachments to files