From ceebc922cf3f5451d26108df0940dd85dfe3a98b Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 25 Apr 2022 21:07:22 -0700 Subject: [PATCH] fix: Error attempting to import .docx files, closes #3455 --- server/routes/api/documents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes/api/documents.ts b/server/routes/api/documents.ts index 8d200b234..0fd0609e1 100644 --- a/server/routes/api/documents.ts +++ b/server/routes/api/documents.ts @@ -1288,7 +1288,7 @@ router.post("documents.import", auth(), async (ctx) => { }); } - const content = await fs.readFile(file.path, "utf8"); + const content = await fs.readFile(file.path); const document = await sequelize.transaction(async (transaction) => { const { text, title } = await documentImporter({ user,