function uploadFile(files) {
  var file = files[0];
  if (file) {
    var reader = new FileReader();
    reader.readAsText(file, "UTF-8");
    reader.onload = function (evt) {
      document.getElementById("importBox").value = evt.target.result;
      document.getElementById("importButton").click();
    }
    reader.onerror = function (evt) {
      document.getElementById("fcnn-display-area").innerHTML = "Error reading the file";
    }
  }
}
// Uploading a file sums up to copy and paste its content in the import box.
Uploading a file sums up to copy and paste its content in the import box.
Uploading a file sums up to copy and paste its content in the import box .
function uploadFile(files) {
  var file = files[0];
  if (file) {
    var reader = new FileReader();
    reader.readAsText(file, "UTF-8");
    reader.onload = function (evt) {
      document.getElementById("importBox").value = evt.target.result;
      document.getElementById("importButton").click();
    }
    reader.onerror = function (evt) {
      document.getElementById("fcnn-display-area").innerHTML = "Error reading the file";
    }
  }
}
function uploadFile ( files ) { var file = files [ 0 ] ; if ( file ) { var reader = new FileReader ( ) ; reader . readAsText ( file , "UTF-8" ) ; reader . onload = function ( evt ) { document . getElementById ( "importBox" ) . value = evt . target . result ; document . getElementById ( "importButton" ) . click ( ) ; } reader . onerror = function ( evt ) { document . getElementById ( "fcnn-display-area" ) . innerHTML = "Error reading the file" ; } } }
Uploading a file sums up to copy and paste its content in the import box.
Uploading a file sums up to copy and paste its content in the import box .