How to Change User Profile Picture

Hi,

I want to change the user profile picture programmatically instead of system assigned profile picture.

How can I implement it?

Please suggest me.

Thanks
Kumar

2 Likes

need help with this as well

Can’t you just go to the users account preferences and change the profile picture?

Thanks for your response. I am looking for updating the profile picture programmatically.

Have a look at How to reverse engineer the Discourse API if you want to do it with the API. If you want to do it in a plugin then you’d need to look at Beginner’s Guide to Creating Discourse Plugins Part 1: Creating a basic plugin

3 Likes