Allow csv file upload

This commit is contained in:
Marcus Hill 2022-01-07 18:36:55 +00:00
parent c5e976d995
commit d0483f2472
1 changed files with 1 additions and 1 deletions

View File

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