title: I want to get a file object in TypeScript from a html file-Input-Type.?
body: <pre><code>public UploadFile() 
  {
      //File Data
      this.filePath = $("#inputFile").val();
      var file = $("#inputFile").get(0).files[0];  
      var reader = new FileReader();
      reader.onload = function (evt) {
      var fileContent = reader.result;
      var x = fileContent.bytes;                          
  }
  </code></pre>