0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-14 08:41:48 -05:00

🐛 Fix svg media asset upload internal server error

This commit is contained in:
Andrey Antukh 2022-03-20 13:04:12 +01:00
parent 741ad29d82
commit 7f3c67724e

View file

@ -213,6 +213,10 @@
(.reset path-or-stream) (.reset path-or-stream)
result) result)
(string? path-or-stream)
(-> (bh/blake2b-256 path-or-stream)
(bc/bytes->hex))
:else :else
(with-open [is (io/input-stream path-or-stream)] (with-open [is (io/input-stream path-or-stream)]
(-> (bh/blake2b-256 is) (-> (bh/blake2b-256 is)