diff --git a/lib/Service/AssistantService.php b/lib/Service/AssistantService.php index 49c7199a..833631fd 100644 --- a/lib/Service/AssistantService.php +++ b/lib/Service/AssistantService.php @@ -436,7 +436,7 @@ public function parseTextFromFile(string $filePath, string $userId): string { $tempFilePath = sys_get_temp_dir() . '/assistant_app/' . uniqid() . '.tmp'; // Make sure the temp dir exists if (!file_exists(dirname($tempFilePath))) { - mkdir(dirname($tempFilePath), 0600, true); + mkdir(dirname($tempFilePath), 0700, true); } file_put_contents($tempFilePath, $contents); @@ -494,7 +494,6 @@ private function parseDocument(string $filePath, string $mimeType): string { foreach ($sections as $section) { $elements = $section->getElements(); foreach ($elements as $element) { - $class = get_class($element); if (method_exists($element, 'getText')) { $outText .= $element->getText() . "\n"; }