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