update attachement