title: Alternative for window.url in safari
body: <p>Is there any alternative for</p>
  
  <pre><code>window.URL = window.URL || window.webkitURL;
  </code></pre>
  
  <p>for Safari 5 and below?? Am trying to preview the image uploaded by the user using following snippet :</p>
  
  <pre><code>var file = jQuery('#brandImageUpload').prop("files")[0];
  window.URL = window.URL || window.webkitURL ;
  var blobURL = window.URL.createObjectURL(file);
  $('#ibrandImage').attr('src', blobURL);
  $('#brandImage').slideDown();
  $(this).slideUp();
  </code></pre>
  
  <p>But window.URL returns undefined.</p>