mirror of
https://github.com/penpot/penpot.git
synced 2025-06-02 20:21:38 +02:00
🐛 Fix svg upload
Signed-off-by: Andrei Zhurau <zhurov.andrew@gmail.com>
This commit is contained in:
parent
bcc7be16ad
commit
a6ee1617ab
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue