I'm using Angularjs to C# MVC to upload a file to the server. Works great, only sending extra parameters with file does not seem to work. I've tried all kind of things but can't get it to work.
on the client I'm doing this for each file in the queue:
[HttpPost]
public ActionResult Upload(HttpPostedFileBase file)
{
//no idea how to get formData parameters ?
//...
ProcessFile(file);
return Json(restultText, JsonRequestBehavior.AllowGet);
}
I'm using Angularjs to C# MVC to upload a file to the server. Works great, only sending extra parameters with file does not seem to work. I've tried all kind of things but can't get it to work.
on the client I'm doing this for each file in the queue:
on ther server I'm doing this (.net):
Any idea how I could get this to work ?