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
- Our Appwrite organization is suspended
Please give support regarding this , no app is working now , please solve my issue and give support , no one is replying in message section or email.
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...