add gif to allowed extensions
This commit is contained in:
parent
49fb8f4763
commit
1875d3fd48
1 changed files with 3 additions and 1 deletions
|
@ -241,7 +241,9 @@ async fn upload_file(
|
|||
if let Some(file_contents) = maybe_file_contents {
|
||||
let file_type = maybe_file_type.unwrap();
|
||||
let file_name = maybe_file_name.unwrap();
|
||||
let is_video = file_type.starts_with("video/") || file_name.ends_with(".mp4");
|
||||
let is_video = file_type.starts_with("video/")
|
||||
|| file_name.ends_with(".mp4")
|
||||
|| file_name.ends_with(".gif");
|
||||
if is_video {
|
||||
let mut final_tag_set = HashSet::new();
|
||||
|
||||
|
|
Loading…
Reference in a new issue