Add missed coroutine decorators
Support specify content encoding for attachment update