From 624439b2e09d43aafcaa014375fb542e36b2c2ff Mon Sep 17 00:00:00 2001 From: Bago Date: Thu, 26 Jan 2023 13:22:55 +0100 Subject: [PATCH] fix regression about client side image resizing disableImageResize defaults to true, so when we removed it in (#492fbd94611fec6b524cd93ce3ba82b15295091f 0.18.8) we introduced a regression. --- src/js/bindings/fileupload.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/bindings/fileupload.js b/src/js/bindings/fileupload.js index b3ae65c4e..d40ff06dc 100644 --- a/src/js/bindings/fileupload.js +++ b/src/js/bindings/fileupload.js @@ -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,