From 1d1326f6b0a98c3f84706372e77fdf3ebb9da614 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Mon, 13 Mar 2023 01:32:13 +0800 Subject: [PATCH] u --- fileloader.js | 1 + 1 file changed, 1 insertion(+) diff --git a/fileloader.js b/fileloader.js index 090ab44..d1d86e1 100644 --- a/fileloader.js +++ b/fileloader.js @@ -35,6 +35,7 @@ module.exports = { file.path = file.path.replace('\\', '/') if (wo?.ipfsStore) { // 为了在这里使用 wo.ipfsStore.add, 需要提供 FileContent,不能直接用 req.file + // 20230312: not working with nodejs above (not including) 18.2.1! https://github.com/nodejs/node/issues/46221 const { cid } = await wo.ipfsStore.add(wo.ipfsLib.globSource(file.path), { cidVersion: 1, hashAlg: 'sha2-256',