mirror of
https://github.com/penpot/penpot.git
synced 2025-03-31 00:51:19 -05:00
Send width and height fields on image uploading repo method.
This commit is contained in:
parent
2b00395253
commit
eeb141cb8e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue