From 94319cc898dff018cc1aae07d3d8e6c01226bf8c Mon Sep 17 00:00:00 2001 From: amboleos Date: Thu, 10 Jan 2019 16:28:14 +0300 Subject: [PATCH] Update images.js This commit adds client side image resizing functionality. --- src/js/images.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/images.js b/src/js/images.js index 1137be35d..0fe891dd0 100644 --- a/src/js/images.js +++ b/src/js/images.js @@ -201,10 +201,13 @@ dataType: 'json', add: function (e, data) { $.proxy(that, 'uploadAdd', e, data)(); + $.blueimp.fileupload.prototype.options.add.call(this, e, data); }, done: function (e, data) { $.proxy(that, 'uploadDone', e, data)(); - } + }, + disableImageResize: false, + imageMaxWidth: 960, }; // Only add progress callbacks for browsers that support XHR2,