From 7257664ae2af0eab6f79cb29abdd46d184d43acf Mon Sep 17 00:00:00 2001 From: johnnyq Date: Sun, 17 Oct 2021 15:02:02 -0400 Subject: [PATCH] Allow uploading of .txt files under client files --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index a6de128c..2783786d 100644 --- a/post.php +++ b/post.php @@ -4696,7 +4696,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', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'zip', 'tar', 'gz'); + $allowed_file_extensions = array('jpg', 'gif', 'png', 'pdf', 'txt', 'doc', 'docx', 'xls', 'xlsx', 'zip', 'tar', 'gz'); if(in_array($file_extension,$allowed_file_extensions) === false){ $file_error = 1;