Skip to content

Commit

Permalink
Add "type", "image_width", "image_height" fields in sending request
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitro-N committed Mar 27, 2023
1 parent 787d16c commit 8d77e6c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Resources/public/jquery.dropzone_uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit 8d77e6c

Please sign in to comment.