Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
Getting relative path for uploaded image, instead of absolute
Browse files Browse the repository at this point in the history
  • Loading branch information
artshevtsov committed Feb 22, 2018
1 parent d6ec905 commit de0d95e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit de0d95e

Please sign in to comment.