User Plus – upload avatar
-
Hi,
I am trying to upload the user’s avatar but the documentation is not detailed about that.
This is what I found:
Method: avatar_upload
This endpoint is used to upload BuddyPress avatar for user profile.
You must POST the form with avatar image in file upload field var with other required and optional variables as hidden fields.Required argument
cookie
avatar – file upload type var
key – get API key from Settings > User Plus
Optional arguments
full – BuddyPress avatar width and height (default is BP_AVATAR_FULL_WIDTH or 300).
thumb – BuddyPress avatar width and height (default is BP_AVATAR_THUMB_WIDTH or 100).
Example
https://localhost/api/userplus/avatar_upload/In an old topic about that I found that the solution is to use “attachment” instead of “avatar” but it still doesn’t work, so my request is to have a complete description about this service.
Thanks ??
- The topic ‘User Plus – upload avatar’ is closed to new replies.