Added xlsm, md, webp to the allowed upload list

This commit is contained in:
johnnyq 2022-09-16 14:02:28 -04:00
parent f01058ae26
commit 55567df92e
1 changed files with 1 additions and 1 deletions

View File

@ -6980,7 +6980,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', 'csv', 'xls', 'xlsx', 'zip', 'tar', 'gz');
$allowed_file_extensions = array('jpg', '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;