feat: pdf import

This commit is contained in:
Philipinho
2026-04-16 14:17:27 +01:00
parent ba9e4de036
commit 28b46dc0cb
6 changed files with 82 additions and 4 deletions
@@ -51,7 +51,7 @@ export class ImportController {
@AuthUser() user: User,
@AuthWorkspace() workspace: Workspace,
) {
const validFileExtensions = ['.md', '.html', '.docx'];
const validFileExtensions = ['.md', '.html', '.docx', '.pdf'];
const maxFileSize = bytes('20mb');
@@ -102,6 +102,7 @@ export class ImportController {
'.md': 'markdown',
'.html': 'html',
'.docx': 'docx',
'.pdf': 'pdf',
};
if (createdPage) {