I am developing an application where it requires User Profile creation. Though MVC 4 templates has a built-in option for authorization and authentication. But I want to save some more info of users. So I created User Profile table having USER_ID primary attribute and some more attributes. However I am not saving user profile picture in same table with user data. I am saving it to another table called File_master having file ID as primary attribute.
What I created so far is a User Controller , then it created all views for CRUD ops. Here I created a new Field for profile picture with a submit button. For submitting this selected image to db I created another Action method on the same controller.
Now scenario is, Whenever I Click upload image button, action method create is being hit, where I suppose action Method upload should get hit.
How to solve this issue? Lil help with some sample will appreciated.