Upload multiple files with FormData using AngularJS and Asp.Net MVC
I want to upload multiple files using angular js, for this I am using FormData() . Here is my form fields <input name="profileImage" type="file" class="upload" onchange="angular.element(this).scope().LoadFileData(this.files)" accept="image/*"> <input name="avatarImage" type="file" class="upload" onchange="angular.element(this).scope().LoadFileData(this.files)" accept="image/*"> <input name="Id" type="text" ng-model="user.Id" /> <input name="Name" type="text" ng-model="user.Name" /> Here is my Asp.Net MVC controller public ActionResult AddUser(string user, HttpPostedFileBase[] files) { // parse