Upload fill-image data

This commit is contained in:
alonso.torres 2021-06-14 17:04:14 +02:00
parent 8952cb4e00
commit 9fc633080a
2 changed files with 61 additions and 22 deletions

View file

@ -117,7 +117,8 @@
(defn resolve-images
[file-id node]
(if (and (cip/shape? node) (= (cip/get-type node) :image) (not (cip/close? node)))
(if (and (not (cip/close? node))
(cip/has-image? type node))
(let [name (cip/get-image-name node)
data-uri (cip/get-image-data node)]
(->> (upload-media-files file-id name data-uri)