diff --git a/public/attachment.php b/public/attachment.php index 8f9c86c7..4d96c9bf 100644 --- a/public/attachment.php +++ b/public/attachment.php @@ -35,7 +35,7 @@ if ($Attach->enable_attachment()) $ext_l = strrpos($origfilename, "."); $ext = strtolower(substr($origfilename, $ext_l+1, strlen($origfilename)-($ext_l+1))); $banned_ext = array('exe', 'com', 'bat', 'msi'); - $img_ext = array('jpeg', 'jpg', 'png', 'gif'); + $img_ext = array('jpeg', 'jpg', 'png', 'gif', 'webp', 'bmp', 'tif', 'tiff', 'heic'); if (!$file || $filesize == 0 || $file["name"] == "") // nothing received {