ASP.NET MVC with Scaffolding and Razor template engine are great to get your LOB web application up and running shortly. But every once in a while, you find you need to do some extra work to add some features. Having a photo upload template was one of them.
My goals
- To be able to edit user profile (name, email, etc.) as well as photo
- To be able to view the uploaded photo before submit (similar to profile image upload of all social media apps)
- To be built in compliance with ASP.NET MVC (i.e. no server-side controls)
- To avoid writing extra code unless needed (no need for overkill)