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:
parent
741ad29d82
commit
7f3c67724e
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue