Back

User Avatar

  • 0
  • Users
  • Flutter
Mosh Ontong
13 Jul, 2023, 13:55

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.
Binyamin
13 Jul, 2023, 13:59

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.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more