Add inline PDF file preview

This commit is contained in:
Bohdan Triapitsyn
2026-06-12 20:08:19 +03:00
parent 33522a0d58
commit 1a623f9b1c
3 changed files with 127 additions and 55 deletions
+1
View File
@@ -840,6 +840,7 @@ export const registerFsRoutes = (app, dependencies) => {
'.ico': 'image/x-icon',
'.bmp': 'image/bmp',
'.avif': 'image/avif',
'.pdf': 'application/pdf',
};
const mimeType = mimeMap[ext] || 'application/octet-stream';