if ($_SERVER['REQUEST_METHOD'] === 'PUT' && intval($_SERVER['CONTENT_LENGTH']) > 0 && str_starts_with($_SERVER['CONTENT_TYPE'], 'application/x-www-form-urlencoded')) {
$backup = file_get_contents('php://input');
[$_POST,$_FILES] = request_parse_body();
}