Forum Discussion
5 Replies
- satya8 years agoExpert
Hi Pradnya
We have looked for the same requirement too. But got to know that we will not have permissions to upload an image into user album on behalf of the user through API call. It is lithium default behavior. So in our use case, we manually uploaded the images.
Please look into the link we have asked in the community.
Hope this helps :)
- Pradnya8 years agoGuideThank You :)
- peterlu8 years agoChampion
PradnyaI believe you can #1 upload a image to your photo album and get the image object via API v1. #2 Then you can set the image object to your avatar.
For #1, I believe it is doable. /restapi/vc/users/self/media/albums/default/public/images/upload
For #2, you will have to try it. /users/id/${user.id}/profiles/name/url_icon/set?value=xxxxx, for the syntax of xxxxx, you will have to try or ask Lithium. - Pradnya8 years agoGuide
Hi,
Could I upload avatar images in the avatar album on behalf of other users,
that is by using ${user.id} instead of "self" ?
Thanks
You can do it if you have users credential because you have a generate a session to upload the image. We uploaded the image in user's album using PHP Curl.
Here are some useful links
Related Content
- 7 years ago
- 5 years ago
- 9 years ago
- 10 months ago
- 10 years ago