mirror of
https://github.com/penpot/penpot.git
synced 2026-09-08 13:09:22 +00:00
🐛 Fix svg upload
Signed-off-by: Andrei Zhurau <zhurov.andrew@gmail.com>
This commit is contained in:
parent
6237829445
commit
39ae2ed98d
@ -134,7 +134,7 @@
|
|||||||
:bucket "file-media-object"}))))
|
:bucket "file-media-object"}))))
|
||||||
|
|
||||||
(create-image [info]
|
(create-image [info]
|
||||||
(p/let [data (cond-> (:path info) (= (:mtype info) "image/svg+xml") slurp)
|
(p/let [data (:path info)
|
||||||
hash (calculate-hash data)
|
hash (calculate-hash data)
|
||||||
content (-> (sto/content data)
|
content (-> (sto/content data)
|
||||||
(sto/wrap-with-hash hash))]
|
(sto/wrap-with-hash hash))]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user