Attach a document to file