attachment add more image format

This commit is contained in:
xiaomlove
2025-05-26 20:36:08 +07:00
parent 0c31b3a846
commit b63e601f25

View File

@@ -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
{