mirror of https://github.com/itflow-org/itflow
Allow uploading of .txt files under client files
This commit is contained in:
parent
540d5b0d30
commit
7257664ae2
2
post.php
2
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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue