upload control
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user