From 8d77e6c96bc5094a950a89316119ac0c088c87ef Mon Sep 17 00:00:00 2001 From: Sergey Zvyagintsev Date: Tue, 28 Mar 2023 06:30:22 +0700 Subject: [PATCH] Add "type", "image_width", "image_height" fields in sending request --- Resources/public/jquery.dropzone_uploader.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Resources/public/jquery.dropzone_uploader.js b/Resources/public/jquery.dropzone_uploader.js index ac2c178..97be490 100644 --- a/Resources/public/jquery.dropzone_uploader.js +++ b/Resources/public/jquery.dropzone_uploader.js @@ -77,6 +77,15 @@ dropzone.on("sending", function (file, response, formData) { formData.append('request_id', options.requestId); + formData.append('type', file.type); + + if (file.width !== undefined) { + formData.append('image_width', file.width); + } + + if (file.height !== undefined) { + formData.append('image_height', file.height); + } self.progressFiles += 1; });