HTML5 upload file to javascript variable with drag-and-drop support

Is it possible to upload plain text file and store contents to Javascript variable using html5 drag-and-drop api without uploading file to the server? I don’t care about old browsers and it doesn’t have to support other browsers than Chrome, Firefox and Safari (I don’t care about IE if it doesn’t support standards as usual). It would be nice if it could be done without any other js libraries or plugins than jQuery.


Source: cross-browser

Leave a Reply