"File not found"]); exit; } } else { // Missing file parameter response http_response_code(400); header('Content-Type: application/json'); echo json_encode(["error" => "Missing 'file' parameter"]); exit; } } ?>