title: JS FileReader not working in safari it is working fine in chrome
body: <p>I have created function to display image
  please help on this if you have any alternative solution. </p>
  
  <pre><code>admin.previewImage = function(input,selector) {
      if (input.files &amp;&amp; input.files[0]) {
          var reader = new FileReader();
  
          reader.onload = function (e) {
              $(selector).attr('src', e.target.result);
          }
  
          reader.readAsDataURL(input.files[0]);
      }
  }
  </code></pre>