diff --git a/src/js/images.js b/src/js/images.js index cf7301ad3..27b1c2ebe 100644 --- a/src/js/images.js +++ b/src/js/images.js @@ -386,7 +386,7 @@ if (this.options.preview && data.context) { domImage = this.getDOMImage(); domImage.onload = function () { - data.context.find('img').attr('src', domImage.src); + data.context.find('img').attr('src', domImage.getAttribute('src')); if (this.options.uploadCompleted) { this.options.uploadCompleted(data.context, data);