Initial implementation of attachments upload