mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
fix(import): MP4 videos not recognized due to upstream bug
This commit is contained in:
parent
dc8a0c6fff
commit
abede6239d
@ -45,6 +45,11 @@ describe("#getMime", () => {
|
||||
["test.zip"], "application/zip"
|
||||
],
|
||||
|
||||
[
|
||||
"MP4 videos are supported",
|
||||
["video.mp4"], "video/mp4"
|
||||
],
|
||||
|
||||
[
|
||||
"unknown MIME type not recognized by mimeTypes.lookup",
|
||||
["test.fake"], false
|
||||
|
@ -71,7 +71,8 @@ const EXTENSION_TO_MIME = new Map<string, string>([
|
||||
[".ts", "text/x-typescript"],
|
||||
[".excalidraw", "application/json"],
|
||||
[".mermaid", "text/vnd.mermaid"],
|
||||
[".mmd", "text/vnd.mermaid"]
|
||||
[".mmd", "text/vnd.mermaid"],
|
||||
[".mp4", "video/mp4"] // https://github.com/jshttp/mime-types/issues/138
|
||||
]);
|
||||
|
||||
/** @returns false if MIME is not detected */
|
||||
|
Loading…
x
Reference in New Issue
Block a user