mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Moved the remaining upload logics to use the checkFileUpload() Function
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user