From d0483f24721f9d1a220f22b4eac8f68ddf6b3292 Mon Sep 17 00:00:00 2001 From: Marcus Hill Date: Fri, 7 Jan 2022 18:36:55 +0000 Subject: [PATCH] Allow csv file upload --- post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post.php b/post.php index 84bec7e9..2a072648 100644 --- a/post.php +++ b/post.php @@ -5026,7 +5026,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', 'txt', 'doc', 'docx', 'xls', 'xlsx', 'zip', 'tar', 'gz'); + $allowed_file_extensions = array('jpg', 'gif', 'png', 'pdf', 'txt', 'doc', 'docx', 'csv', 'xls', 'xlsx', 'zip', 'tar', 'gz'); if(in_array($file_extension,$allowed_file_extensions) === false){ $file_error = 1;