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