allow mkv

This commit is contained in:
Luna 2024-08-04 18:37:00 -03:00
parent 657436f80d
commit 6d917bdf1f

View file

@ -339,6 +339,7 @@ async fn upload_file(
let is_video = file_type.starts_with("video/") let is_video = file_type.starts_with("video/")
|| file_name.ends_with(".mp4") || file_name.ends_with(".mp4")
|| file_name.ends_with(".gif") || file_name.ends_with(".gif")
|| file_name.ends_with(".mkv")
|| file_name.ends_with(".webm"); || file_name.ends_with(".webm");
if is_video { if is_video {
let mut final_tag_set = HashSet::new(); let mut final_tag_set = HashSet::new();