c# - Uploading data to two different tables MVC 4 -
i developing application requires user profile creation. though mvc 4 templates has built-in option authorization , authentication. want save more info of users. created user profile table having user_id primary attribute , more attributes. not saving user profile picture in same table user data. saving table called file_master having file id primary attribute.
what created far user controller , created views crud ops. here created new field profile picture submit button. submitting selected image db created action method on same controller.
now scenario is, whenever click upload image button, action method create being hit, suppose action method upload should hit.
how solve issue? lil sample appreciated.
it seems problem view responsible uploading image. check action
of form , ensure linked action method want.
and rest of work, take @ following link see how store images in database
https://stackoverflow.com/questions/17966503/how-to-insert-an-image-into-sql-server-database/
Comments
Post a Comment