From e622db0578bd46b2fd31fc23beb5aebcea2caa65 Mon Sep 17 00:00:00 2001 From: lambdacastix Date: Sun, 11 Jul 2021 22:41:44 +0000 Subject: add support to another wav mimetype ```bash $ file --mime-type file.wav file.wav: audio/x-wav $ file file.wav file.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz ``` note: aac had a `'LEFT-TO-RIGHT MARK' (U+200E)` that I removed too --- server/initializers/constants.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index cd00b73d5..ab59320eb 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -448,9 +448,10 @@ const MIMETYPES = { 'audio/ogg': '.ogg', 'audio/x-ms-wma': '.wma', 'audio/wav': '.wav', + 'audio/x-wav': '.wav', 'audio/x-flac': '.flac', 'audio/flac': '.flac', - '‎audio/aac': '.aac', + 'audio/aac': '.aac', 'audio/m4a': '.m4a', 'audio/mp4': '.m4a', 'audio/x-m4a': '.m4a', -- cgit v1.2.3