Filer uploads
This commit is contained in:
@@ -132,6 +132,12 @@ if (array_search($_SERVER['REQUEST_METHOD'], $methods) === false) {
|
||||
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") {
|
||||
$in = flatten(json_decode(file_get_contents('php://input'), true));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user