My requirements include file upload, but unfortunately it's not working. All validations are functioning properly except for the file upload. Can someone please assist me in resolving this issue?
<input type="file" id="file" ng-model="file" required>
<button type="submit" class="btn btn-default" style="background-color: #00BCD4; color: #fff;" ng-click="myForm.$valid && submit()">Submit</button>
$scope.submit=function(){alert("hi");}