From a6ee1617ab7240260cb4615e94036fb91792ddb4 Mon Sep 17 00:00:00 2001 From: Andrew Zhurov Date: Mon, 1 Aug 2022 11:10:09 +0300 Subject: [PATCH] :bug: Fix svg upload Signed-off-by: Andrei Zhurau --- backend/src/app/rpc/mutations/media.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/app/rpc/mutations/media.clj b/backend/src/app/rpc/mutations/media.clj index 66ef41da6..1a344289d 100644 --- a/backend/src/app/rpc/mutations/media.clj +++ b/backend/src/app/rpc/mutations/media.clj @@ -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))]