upload control

This commit is contained in:
CHIEFSOFT\ameye
2023-06-01 20:58:15 -04:00
parent 0c5660de1f
commit 2f2f409ffe
2 changed files with 11 additions and 1 deletions
+5
View File
@@ -133,6 +133,11 @@ if (array_search($_SERVER['REQUEST_METHOD'], $methods) === false) {
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
if ( $endpoint == 'uploads'){
$local_out=["test_msg"=>'Yes the upload endpoinmt was hit******** 777'];
$call_backend = false; // will be decided after file is saved
}
$call_backend = false;
if (isset($_FILES) && is_array($_FILES) && count($_FILES)>0) {
$in = array_merge($_POST,$_FILES);
}