From 7f3c67724ead1b649b4108986e21d082077e26c1 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sun, 20 Mar 2022 13:04:12 +0100 Subject: [PATCH] :bug: Fix svg media asset upload internal server error --- backend/src/app/storage/impl.clj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/src/app/storage/impl.clj b/backend/src/app/storage/impl.clj index e08d5ce500..c5623dd5a8 100644 --- a/backend/src/app/storage/impl.clj +++ b/backend/src/app/storage/impl.clj @@ -213,6 +213,10 @@ (.reset path-or-stream) result) + (string? path-or-stream) + (-> (bh/blake2b-256 path-or-stream) + (bc/bytes->hex)) + :else (with-open [is (io/input-stream path-or-stream)] (-> (bh/blake2b-256 is)