Skip to content

Build your personal knowledge base with Trilium Notes

chore(server/mime): remove mp4 workaround

Elian Dorand7519660786d
diff --git a/apps/server/src/services/import/mime.ts b/apps/server/src/services/import/mime.ts
index 0a129ae1e0..b25e98926d 100644
--- a/apps/server/src/services/import/mime.ts
+++ b/apps/server/src/services/import/mime.ts
@@ -73,8 +73,7 @@ const EXTENSION_TO_MIME = new Map<string, string>([
[".ts", "text/x-typescript"],
[".excalidraw", "application/json"],
[".mermaid", "text/vnd.mermaid"],
- [".mmd", "text/vnd.mermaid"],
- [".mp4", "video/mp4"] // https://github.com/jshttp/mime-types/issues/138
+ [".mmd", "text/vnd.mermaid"]
]);
/** @returns false if MIME is not detected */