Correctly fix octet stream fallback for video ext
authorChocobozzz <me@florianbigard.com>
Fri, 7 Feb 2020 08:02:18 +0000 (09:02 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 7 Feb 2020 08:02:18 +0000 (09:02 +0100)
server/initializers/constants.ts

index 8f5c1df1dc2053b17aff18325fafa0d8327ff609..13e32b6d2f157fe8dd619bd0e848c6a41ba47a14 100644 (file)
@@ -795,6 +795,8 @@ function buildVideoMimetypeExt () {
         'video/x-matroska': '.mkv',
         'video/avi': '.avi',
         'video/x-m4v': '.m4v',
+        // Could be anything
+        'application/octet-stream': null,
         'video/m4v': '.m4v'
       })
     }