I’m creating a custom back-end API to update a user avatar image via user id. So i send via post REST request this parameters:
– user_id
: The id of the user;
– image: base64
image;
– image_name
: the image name.
This is the php code that i use to update the avatar image but it doesn’t works