I have the following code that presents the user with a preview of the image they're trying to upload and works really well in FF:
var img = document.createElement('img');
img.src = $('#imageUploader').get(0).files[0].getAsDataURL();
The problem is, getAsDataURL()
only works in FF. Is there something similar/a workaround for this kind of functionality in Chrome (specifically)?
.get()
method supposed to load data from the server with a GET request? (api.jquery.com/jQuery.get) Maybe you meant.eq()
? – Wellnigh