title: File Upload using AngularJS
body: <p>Here is my HTML form:</p>
  
  <pre><code>&lt;form name="myForm" ng-submit=""&gt;
      &lt;input ng-model='file' type="file"/&gt;
      &lt;input type="submit" value='Submit'/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I want to upload an image from local machine and want to read the content of the uploaded file. All this I want to do using AngularJS.</p>
  
  <p>When I try to print the value of <code>$scope.file</code> it comes as undefined.</p>