allow webp for users and profile

This commit is contained in:
johnnyq
2024-11-18 18:19:57 -05:00
parent 097e1c7b5f
commit ff3df12523
2 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ if (isset($_POST['edit_your_user_details'])) {
}
// Photo
if ($new_file_name = checkFileUpload($_FILES['avatar'], array('jpg', 'jpeg', 'gif', 'png'))) {
if ($new_file_name = checkFileUpload($_FILES['avatar'], array('jpg', 'jpeg', 'gif', 'png', 'webp'))) {
$file_tmp_path = $_FILES['avatar']['tmp_name'];