From 6ace7cc098db21f8a3e5419ac2275709a8ad37e8 Mon Sep 17 00:00:00 2001 From: Roland Date: Fri, 9 Jun 2023 16:10:21 -0600 Subject: [PATCH] An octet-stream that ends with mp4 is a video. --- wrolpi/files/lib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wrolpi/files/lib.py b/wrolpi/files/lib.py index 472efc2f..feedc7a6 100644 --- a/wrolpi/files/lib.py +++ b/wrolpi/files/lib.py @@ -153,6 +153,8 @@ def _mimetype_suffix_map(path: Path, mimetype: str): return MOBI_MIMETYPE if suffix.endswith('.stl'): return 'model/stl' + if suffix.endswith('.mp4'): + return 'video/mp4' if suffix.endswith('.hgt'): return 'application/octet-stream' if mimetype == 'text/plain':