Allow Extra file extentions to be uploaded, increased file upload hard limit in code from 20MB to 500MB

This commit is contained in:
johnnyq
2023-08-09 16:38:53 -04:00
parent 850c3f7942
commit 43f016f70f
4 changed files with 13 additions and 7 deletions

View File

@@ -23,7 +23,7 @@ if (isset($_POST['add_file'])) {
//Check to see if a file is attached
if ($_FILES['file']['tmp_name'] != '') {
if ($file_reference_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png', 'webp', 'pdf', 'txt', 'md', 'doc', 'docx', 'csv', 'xls', 'xlsx', 'xlsm', 'zip', 'tar', 'gz'))) {
if ($file_reference_name = checkFileUpload($_FILES['file'], array('jpg', 'jpeg', 'gif', 'png', 'webp', 'pdf', 'txt', 'md', 'doc', 'docx', 'odt', 'csv', 'xls', 'xlsx', 'ods', 'pptx', 'odp', 'zip', 'tar', 'gz', 'xml', 'msg', 'json', 'wav', 'mp3', 'ogg', 'mov', 'mp4', 'av1'))) {
$file_tmp_path = $_FILES['file']['tmp_name'];