[Full Article][1]
document.getElementById('upload-file').addEventListener('change', function() {
var file;
var destination = document.getElementById('destination');
destination.innerHTML = '';
// Looping in case they uploaded multiple files
for(var x = 0, xlen = this.files.length; x < xlen; x++) {