How to process uploaded file using Javascript

file, javascript

Solution

You may want to take a look at the HTML5 FileReader API - http://www.html5rocks.com/en/tutorials/file/dndfiles/

Problem

I am trying to process an XML file using Javascript. ``` xhttp.open("GET","exportproject.xml",false); ``` What I want to do is, let the user specify the file (instead of hard-coding it to exportproject.xml) using file uploader and then process the same using Javascript instead of sending it to the server. Is it possible?

Original source