diff --git a/js/views/file_input_view.js b/js/views/file_input_view.js index 3e7a8264bc..bb01d372c3 100644 --- a/js/views/file_input_view.js +++ b/js/views/file_input_view.js @@ -135,7 +135,7 @@ case 'video': this.addThumb('images/video.svg'); break; case 'image': window.autoOrientImage(file) - .then(this.addThumb.bind(this)); + .then(dataURL => this.addThumb(dataURL)); break; default: this.addThumb('images/file.svg'); break;