title: Is it possible to load a XLSX file to be converted into an HTML table, without having a user browse for the said XLSX file?
body: <p>I am currently creating a html page that would load a XLSX file from local directory and then convert it into an HTML table on the same page underneath it, but my current html page requires a user to browse their directory and open said file. </p>
  
  <pre><code>&lt;html&gt;
   &lt;input id = "fileUpload" type ="file" &gt; 
   &lt;input type="button" id="upload" value="Upload" onclick="Upload()"/&gt;
  
   &lt;table id="dvExcel"&gt;&lt;/table&gt;
   &lt;hr&gt;
  &lt;/html&gt;
  
  
  &lt;script&gt;
  function Upload() {
  //Reference the FileUpload element.
  var fileUpload = document.getElementById("fileUpload");
  
  
  //Validate whether File is valid Excel file.
  var regex = /^([a-zA-Z0-9\s_\\.\-:])+(.xls|.xlsx)$/;
  if (regex.test(fileUpload.value.toLowerCase())) {
      if (typeof (FileReader) != "undefined") {
          var reader = new FileReader();
  
          //For Browsers other than IE.
          if (reader.readAsBinaryString) {
              reader.onload = function (e) {
                  ProcessExcel(e.target.result);
              };
              reader.readAsBinaryString(fileUpload.files[0]);
          } else {
              //For IE Browser.
              reader.onload = function (e) {
                  var data = "";
                  var bytes = new Uint8Array(e.target.result);
                  for (var i = 0; i &lt; bytes.byteLength; i++) {
                      data += String.fromCharCode(bytes[i]);
                  }
                  ProcessExcel(data);
              };
              reader.readAsArrayBuffer(fileUpload.files[0]);
  
          }
      } else {
          alert("This browser does not support HTML5.");
      }
  } else {
      alert("Please upload a valid Excel file.");
  }
  };
  &lt;/script&gt;
  </code></pre>