From b63e601f250f0d0f503190d2685804cc46308bda Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Mon, 26 May 2025 20:36:08 +0700 Subject: [PATCH] attachment add more image format --- public/attachment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {