Skip to content

Commit

Permalink
#102271 - set image size after upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ofrankowska committed Apr 4, 2024
1 parent e275a17 commit a7e17e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions view/adminhtml/web/vue/field-type/image-upload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@
if (response.file) {
this.setItemImage(response.file, response.url);
}
if (response.size) {
this.item.image_width = response.size.image_width;
this.item.image_height = response.size.image_heigth;
}
}.bind(this),
error: function() {
$('body').trigger('processStop');
Expand Down

0 comments on commit a7e17e4

Please sign in to comment.