Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
<input type="file" multiple onchange="readImagesAndPreview(this.files);"><p>
  <div id="thumbnails"></div>
  <script>
    var container = document.getElementById("thumbnails");
    
    function readImagesAndPreview(files) {
      for(var i=0; i < files.length; i++) {
         var f = files[i];
      
         var reader = new FileReader();
        
         reader.onload = function(e) {
           var img = document.createElement("img");
           img.src = e.target.result;
           img.width = 100;
           
           container.appendChild(img);
        }
      
        reader.readAsDataURL(f);
      }
    }
    
  </script>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
AuroreDechampspro
0viewers