From eeb141cb8e0fda3d0f0b025a4530087ddc4a4764 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 12 Oct 2016 18:45:10 +0200 Subject: [PATCH] Send width and height fields on image uploading repo method. --- src/uxbox/main/repo/images.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/uxbox/main/repo/images.cljs b/src/uxbox/main/repo/images.cljs index dab296ec2..160419718 100644 --- a/src/uxbox/main/repo/images.cljs +++ b/src/uxbox/main/repo/images.cljs @@ -45,9 +45,11 @@ (send! params))) (defmethod request :create/image - [_ {:keys [coll id file] :as body}] + [_ {:keys [coll id file width height] :as body}] (let [body (doto (js/FormData.) (.append "file" file) + (.append "width" width) + (.append "height" height) (.append "id" id)) params {:url (str url "/library/image-collections/" coll "/images") :method :post