Add audio/ogg and audio/x-wav to the list of supported media types

This commit is contained in:
silverpill 2023-03-12 20:14:58 +00:00
parent 43d084de8d
commit 8400241ab4
2 changed files with 5 additions and 1 deletions

View file

@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Added
- Enabled audio and video uploads.
- Added `audio/ogg` and `audio/x-wav` to the list of supported media types.
### Changed

View file

@ -6,14 +6,17 @@ use sha2::{Digest, Sha256};
use mitra_utils::files::{get_media_type_extension, write_file};
pub const SUPPORTED_MEDIA_TYPES: [&str; 8] = [
pub const SUPPORTED_MEDIA_TYPES: [&str; 11] = [
"audio/mpeg",
"audio/ogg",
"audio/x-wav",
"image/apng",
"image/gif",
"image/jpeg",
"image/png",
"image/webp",
"video/mp4",
"video/ogg",
"video/webm",
];