From 448fca2c211aa5f37dd92b8e358ef55880148154 Mon Sep 17 00:00:00 2001 From: fencl Date: Tue, 2 Jan 2024 11:29:03 +0100 Subject: [PATCH] . --- ADF/saveData.php | 7 +++++-- test.php | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 test.php 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 @@ +