title: How to display selected image without sending data to server?
body: <p>I am trying to show the client an image which he has selected:</p>
  
  <pre><code>&lt;input type="file" onchange="showImage(this)"/&gt;
  </code></pre>
  
  <p>But I can't read the value of the input, as I checked out <a href="https://stackoverflow.com/questions/5903323/cant-get-value-of-input-type-file">here</a>. Is it possible to display the image?</p>
  
  <p>In <code>onchange</code> I can send the form to server and server can send the data back, but is it really necessary? Can't the client display the data without the ping-pong to the server? Is it a security issue?</p>