Mahesh Reddy

Mahesh Reddy

  • NA
  • 363
  • 17.1k

Save upload file to server after clicking of save

Jan 9 2019 11:59 PM
Hi,
I have one form with fields OrderName and upload a file
I need save both fields to database
everything is working fine
probelm is that only fllename is saved to database
i need to save location of filename
could please any body help me
Note:In below i need to write upload a file to server
[HttpPost]
public ActionResult SaveOrder(Order orders)
{
string result = "Error! Order Is Not Complete!";
{
Order order = new Order();
order.OrderName = orders.OrderName;
order.Resume = orders.Resume;
}
}

Answers (3)