Moved the remaining upload logics to use the checkFileUpload() Function

This commit is contained in:
johnnyq
2023-03-21 12:53:01 -04:00
parent 0f1f324162
commit 035be88e72
2 changed files with 18 additions and 123 deletions

View File

@@ -595,8 +595,7 @@ function getInvoiceBadgeColor($invoice_status)
}
// Pass $_FILE['file'] to check an uploaded file before saving it
function checkFileUpload($file, $allowed_extensions)
{
function checkFileUpload($file, $allowed_extensions) {
// Variables
$name = $file['name'];
$tmp = $file['tmp_name'];