added update attachment.(not tested)