Is there any alternative for
window.URL = window.URL || window.webkitURL;
for Safari 5 and below?? Am trying to preview the image uploaded by the user using following snippet :
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();
But window.URL returns undefined.