This commit is contained in:
Swrup 2025-09-27 18:49:16 +02:00
parent 5342a1281f
commit 1cb610988f
4 changed files with 39 additions and 33 deletions

View file

@ -13,7 +13,7 @@ let is_valid_filename, media_to_extension =
; (("image", "gif"), "gif")
]
in
(* <> than the actual set of "supported" extension (depends on config files) *)
(* <> than the actual set of "supported" extension (which depends on config files) *)
let all_known_extensions = mimetype_ext_assoc |> List.split |> snd in
let is_valid_filename path = Fpath.mem_ext all_known_extensions path in
let media_to_extension = function