Skip to content

Instantly share code, notes, and snippets.

@ukyo ukyo/fileio.html
Last active Dec 16, 2015

What would you like to do?
<!doctype html>
<input type="file">
<script src="file.js"></script>
window.onload = function() {
var fileInput = document.querySelector('input');
fileInput.addEventListener('change', function(e) {
var file =[0];
var reader = new FileReader;
reader.onload = function() {
}, false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.