@MikeBenkovich

Avatars are the social media mechanism for personalizing and attaching an account to the user. For this I wanted to make sure a user could upload their pic and have it be part of their profile. To do this I had to enable custom profile information in the identity system, then add the ability to upload a file to storage, and finally propogate the use of the image across the site.

These are my notes...

  1. Customize identity. For this I followed Microsoft's documentation and added fields for handle and avatar url. The link to the relevant documents is here...Add, download, and delete user data to Identity in an ASP.NET Core project | Microsoft Docs
  2. Upload to storage. This was taken from a combination of sources, including docs on microsoft, but also from my session called "Where's my Stuff" where we work with storage options in azure.
  3. Update the site. This required work in a couple areas, including the data models, the code behind and the razor pages. I also did quite a bit of work to get the data migrations to work too.

Enjoy!

 

Let's add some content here. I like working with rich text

It makes my work so much easier!

BANG!

An interview I did

 

Load more...