I wanna create a user profile dashboard in my web app. I've used Appwrite auth service but I want to help users to upload their photo in their profile route of the web application and also add other details.
Do I need to create a separate collection for it? Also, how to store the photo that will be uploaded by the user?
Summary
To create a user profile dashboard, you can use Appwrite auth service. However, by default, user profile information is not publicly available. To make it publicly available, you can use functions or create a separate database for user data.
Another option is to group users into teams, which allows you to access other users' data.
To update the user's preferences, you can use the accountUpdatePrefs method in the Appwrite client SDK. Use the accountGetPrefs method to fetch the preferences.
To store a user's profile picture, you can store it as a JSON object in the prefs property of the user object. For example, it
Asutosh
Octerns
May 18, 2023, 11:38
Hey you might want to checkout the user object from the docs
Hope this helps, pls let me know if you are still facing any issue following this
D5
Moderator
May 22, 2023, 15:24
If you want it to be publicly available, it's not possible to achieve that by default, unless using functions. In such case you will need a separate database with users data (probably more efficient than functions).
Another way is grouping users in teams, that way you can get other users data