diff --git a/ADF/saveData.php b/ADF/saveData.php index 4ac1d04..d2857a3 100644 --- a/ADF/saveData.php +++ b/ADF/saveData.php @@ -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']); } -?> \ No newline at end of file + +// Ladící výstup +error_log(print_r($_POST, true)); +error_log(print_r($_FILES, true)); diff --git a/test.php b/test.php new file mode 100644 index 0000000..15c0ce7 --- /dev/null +++ b/test.php @@ -0,0 +1,4 @@ +