I've html page which uploads the file. As of now, I want to store it locally. I'm using angularjs for this. I've gone through many solutions but didn't work. This is my html file:
<body>
<form action="go" method="post" enctype="multipart/form-data">
Select File:<input type="file" name="filename"/><br/>
<input ng-click="submit()" class="btn btn-md btn-primary"
type="submit" value="{{ 'UPLOAD' | translate }}" >
</input>
</form>
</body>
Please don't get confused with directives. They are from bootstrap.
I've done necessary changes in app.js. The uploadcontroller is getting access. The thing is I don't have any idea what to write in function so that the file will get stored locally. This is my controller:
newController.controller("UploadController", function($scope, $location, ezfb) {
alert("inside uploadcontroller");
$scope.submit = function(){
}
});
Please help me out as I'm stuck at this point for hours. Thank you in advance.