Web Snippet: Generate preview from file upload
Html: <input type="file" id="file" multiple> <div id="container"></div> JS: var app = {}; var container = app.container = document.getElementById('container'); var f = app.file = document.getElementById('file'); // jQuery alternative: $('#file')[0].files[0]; app.file.addEventListener('change', function(){…