From cf30e02fb3fdf540d344be9f12149c1a15bf96d2 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 17 Nov 2022 14:11:41 -0500 Subject: [PATCH] Added jpeg as an accepted file upload type in POST --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index e69b16ca..553cedb3 100644 --- a/post.php +++ b/post.php @@ -6641,7 +6641,7 @@ if(isset($_POST['add_file'])){ $file_reference_name = md5(time() . $file_name) . '.' . $file_extension; // check if file has one of the following extensions - $allowed_file_extensions = array('jpg', 'gif', 'png', 'webp', 'pdf', 'txt', 'md', 'doc', 'docx', 'csv', 'xls', 'xlsx', 'xlsm', 'zip', 'tar', 'gz'); + $allowed_file_extensions = array('jpg', 'jpeg', 'gif', 'png', 'webp', 'pdf', 'txt', 'md', 'doc', 'docx', 'csv', 'xls', 'xlsx', 'xlsm', 'zip', 'tar', 'gz'); if(in_array($file_extension,$allowed_file_extensions) === false){ $file_error = 1;