
How to get the avatar of current user and change the avatar of the current suer
TL;DR
The user-avatar feature in Appwrite uses the Avatar API for initials. If you want to have a custom avatar attached to the user, you can create a new collection for it or use the User preferences feature. To get the avatar of the current user, you can use the avatarsGetInitials method from the Avatar API. To change the avatar of the current user, you can update the avatar in the user's preferences or in the custom avatar collection.
Appwrite user-avatar just uses the Avatar API for the initials https://appwrite.io/docs/client/avatars?sdk=web-default#avatarsGetInitials
If you want to have avatar attached to your user it might be best to create some collection for it Or Use the User preferences.
Recommended threads
- I am facing this error: type 'Null' is ...
When attempting to fetch areas from the area collection, the application throws an error: "type 'Null' is not a subtype of type 'int.'" This issue originates in...
- Adding Domain to Sites [Self Hosted]
I am struggling to get this working. I stood-up a new server and deployed appwrite 1.7.4. I added update .env file _APP_DOMAIN=appwrite.mydomain.com _APP_DOMAI...
- Cloud DB
Hey guys, my entire database has gone missing. Project id 665ae18f002aac268b73
