
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?

Hey you might want to checkout the user object from the docs


in prefs User's preferences can be storged as a key-value object

so you may use that according to your need

I recently discovered this useful project and also prefer you to look into this Project https://github.com/lohanidamodar/flutter_appwrite_starter/tree/main it has demontrated the exact use case what you are trying to do.

How to do that?

I'm using React.js in my application

So you can set a users profile pic using the prefs property of the user object as a json

I'm new to all these


It can be stored as a json say {"profile_pic": "YourImageUrl"}

where to store? how to do that?

Use the accountUpdatePrefs method to update the Prefs key-value json https://appwrite.io/docs/client/account?sdk=web-default#accountUpdatePrefs And then to fetch the same you can use accountGetPrefs method https://appwrite.io/docs/client/account?sdk=web-default#accountGetPrefs

Hope this helps, pls let me know if you are still facing any issue following this

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
Recommended threads
- Auth Error
"use client"; import { useEffect } from "react"; import { getSessionCookie } from "@/actions/auth"; import { createBrowserSessionClient } from "@/lib/appwrite-...
- Prevent modifying specific attributes
How do I prevent user to only to be able to modify some of the attributes. Document level security gives full access to update whole document, what are the wor...
- Bypass Error When Creating Account With ...
Suppose user first uses email/pass for log in using xyz@gmail.com, few month later on decides to use google oauth2 with same xyz@gmail.com (or in reverse orde...
