Add missing createAttachmentFile call.