Back

how to set a default profile pic

  • 0
  • Users
  • Flutter
  • Android
  • Apple
Ansh
27 Jun, 2023, 18:36

i am making a social media app and want that app's users to have a default profile pic how am i suppose to implement this

TL;DR
To set a default profile picture for users in your social media app, you can create a function that will trigger whenever a user is created using the `users.*.create` event. In this function, assign the newly created user the default picture. Here are the steps to implement this: 1. Create a function in your app that will be triggered whenever a user is created. 2. Use the `users.*.create` event to listen for new user creations. 3. In the function, assign the default profile picture to the newly created user. 4. You can customize the default profile picture according to your app's design and requirements
Binyamin
27 Jun, 2023, 22:16

The best way is to create a function that will trigger any time user create using the users.*.create event.

Then in that function assign the newly created user the defualt picture.

Check events here: https://appwrite.io/docs/events#authentication-events

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