Skip to content

Commit

Permalink
fix regression about client side image resizing
Browse files Browse the repository at this point in the history
disableImageResize defaults to true, so when we removed it in (#492fbd94611fec6b524cd93ce3ba82b15295091f  0.18.8) we introduced a regression.
  • Loading branch information
bago committed Jan 26, 2023
1 parent 721c375 commit 624439b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/js/bindings/fileupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ ko.bindingHandlers['fileupload'] = {
// which actually support image resizing, but fail to
// send Blob objects via XHR requests:
// disableImageResize: /Android(?!.*Chrome)|Opera/.test(global.navigator.userAgent),
// Note: this defaults to true, so we have to explicitly set it to false
disableImageResize: false,
imageMaxWidth: 1920, // default
imageMaxHeight: 1080, // default
previewMaxWidth: 200,
Expand Down

0 comments on commit 624439b

Please sign in to comment.