.
This commit is contained in:
@@ -4,9 +4,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
|
||||
// Uložte hodnotu obličeje (a další data) na serveru
|
||||
file_put_contents('data.json', json_encode($data));
|
||||
|
||||
|
||||
echo json_encode(['success' => true]);
|
||||
} else {
|
||||
echo json_encode(['error' => 'Invalid request method']);
|
||||
}
|
||||
?>
|
||||
|
||||
// Ladící výstup
|
||||
error_log(print_r($_POST, true));
|
||||
error_log(print_r($_FILES, true));
|
||||
|
||||
Reference in New Issue
Block a user