By using multi-part/form-data we can combine the avatar file and the json object in the same request body instead of having two requests.
This issue is for the back and the front.
Don't forget to return the new value of avatarUrl. (because actually the post avatar doesn't return the avatar url)
In front you can cache all the patch response data in the account me.
By using multi-part/form-data we can combine the avatar file and the json object in the same request body instead of having two requests.
This issue is for the back and the front.
Don't forget to return the new value of avatarUrl. (because actually the post avatar doesn't return the avatar url)
In front you can cache all the patch response data in the account me.