Add audio/ogg and audio/x-wav to the list of supported media types
This commit is contained in:
parent
43d084de8d
commit
8400241ab4
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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",
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue