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,