Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js fileinput get content

//get file object
var file = document.getElementById('myFile').files[0];
if (file) {
  // create reader
  var reader = new FileReader();
  reader.readAsText(file);
  reader.onload = function(e) {
    // browser completed reading file - display it
    alert(e.target.result);                     
  };
}
Source by social.msdn.microsoft.com #
 
PREVIOUS NEXT
Tagged: #js #fileinput #content
ADD COMMENT
Topic
Name
1+6 =