Preview image for IE
<p>I have script which shows me image in django form before I click submit.</p>

<pre><code>        function upload_img(input, id) {
            if (input.files &amp;&amp; input.files[0]) {
                var reader = new FileReader();
                reader.onload = function (e) {
                    $(id).attr('src', e.target.result);
                }
                reader.readAsDataURL(input.files[0]);
            }
        };
</code></pre>

<p>But it does not work for IE 9. Can I make it work for this browser?</p>
