mirror of
https://github.com/penpot/penpot.git
synced 2026-09-08 13:09:22 +00:00
Send width and height fields on image uploading repo method.
This commit is contained in:
parent
2b00395253
commit
eeb141cb8e
@ -45,9 +45,11 @@
|
|||||||
(send! params)))
|
(send! params)))
|
||||||
|
|
||||||
(defmethod request :create/image
|
(defmethod request :create/image
|
||||||
[_ {:keys [coll id file] :as body}]
|
[_ {:keys [coll id file width height] :as body}]
|
||||||
(let [body (doto (js/FormData.)
|
(let [body (doto (js/FormData.)
|
||||||
(.append "file" file)
|
(.append "file" file)
|
||||||
|
(.append "width" width)
|
||||||
|
(.append "height" height)
|
||||||
(.append "id" id))
|
(.append "id" id))
|
||||||
params {:url (str url "/library/image-collections/" coll "/images")
|
params {:url (str url "/library/image-collections/" coll "/images")
|
||||||
:method :post
|
:method :post
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user