diff --git a/src/core/components/files.js b/src/core/components/files.js index 4c66d954e0..3ec915065d 100644 --- a/src/core/components/files.js +++ b/src/core/components/files.js @@ -315,6 +315,9 @@ function normalizePath (path) { if (Buffer.isBuffer(path)) { path = toB58String(path) } + if (CID.isCID(path)) { + path = path.toBaseEncodedString() + } if (path.indexOf('/ipfs/') === 0) { path = path.substring('/ipfs/'.length) }