Filer uploads
This commit is contained in:
@@ -463,6 +463,13 @@ class WrenchApi extends BaseController
|
||||
'URI' => $uri,
|
||||
]);
|
||||
}
|
||||
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
if (isset($_FILES) && is_array($_FILES) && count($_FILES)>0) {
|
||||
$raw_array = array_merge($_POST,$_FILES);
|
||||
}
|
||||
}
|
||||
|
||||
// echo "EXYTACT INPUT DATA HERE";
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$raw_array = json_decode($raw_json, true);
|
||||
|
||||
Reference in New Issue
Block a user