append uploaded document to attachments