multiple file preview by javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4100927/chrome-filereader">Chrome FileReader</a>  </p>
</blockquote>



<p>I was wondering how I can change this code in order to be able to preview multiple images.</p>

<p>Thank you in advanced.</p>

<pre><code>Select Image: 
&lt;input type="file" name="files[]" multiple=""&gt;​

$("#image").change(function(e) {        
    var file = this.files[0];    
    var reader = new FileReader();
    reader.onload = function(e) {
        $('&lt;img&gt;').attr('src', e.target.result).appendTo('body');
    };
    reader.readAsDataURL(file);}                   

});
​
</code></pre>
