I tried to use ng-model on input tag with type file: <input type="file" ng-model="vm.uploadme" /> But after selecting a file, in controller, $scope.vm.uploadme is still undefined. How do I...
  • May 18, 2022
  • 0 Comments
Here is my HTML form: <form name="myForm" ng-submit=""> <input ng-model="file" type="file"/> <input type="submit" value="Submit"/> </form> I want to upload an image from local machine and want to read the...
  • May 16, 2022
  • 0 Comments