Allow WebP and Gif pics
svg stays forbidden until we can be sure it's fine security-wise Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -166,7 +166,7 @@ defmodule MobilizonWeb.Upload do
|
||||
|
||||
defp check_file_size(_, _), do: :ok
|
||||
|
||||
@picture_content_types ["image/png", "image/jpg", "image/jpeg", "image/webp"]
|
||||
@picture_content_types ["image/gif", "image/png", "image/jpg", "image/jpeg", "image/webp"]
|
||||
# Return whether the upload is a picture or not
|
||||
defp get_type(content_type) do
|
||||
if content_type in @picture_content_types do
|
||||
|
||||
Reference in New Issue
Block a user