Sunday, 15 April 2012

c# - Uploading data to two different tables MVC 4 -


I am developing an application where it requires creation of a user profile, although the MVC 4 template contains authorization and authentication There is an underlying option for. But I want to save some more information about users That's why I have created a USER_ID primary feature and some other user profile table. However, I am not saving a user profile picture in the same table with user data. I am saving it as a primary file ID file on another table called FileEyear.

The user I have created so far has made all the views for the CRUD Ops. Here I have created a new field for the profile picture with a submitted field. I have created another action method on the same controller to submit this selected image to DB.

Now the scenario is, whenever I click the Upload an image button, the action method is being created, where I think the action upload should get a hit.

How to solve this issue? Lil help with some samples will be appreciated.

It seems that the problem is with the view, which is responsible for uploading the image. Check

Action and make sure it is linked to the procedure you want.

And about the rest of the work, take a look at the following link: How to store images in a database


No comments:

Post a Comment