Fix readFiles method to correctly concatenate file path for reading file contents

This commit is contained in:
dhanabalan
2025-09-26 10:30:58 +05:30
parent 8a3c0639ad
commit 18eb234df4

View File

@@ -82,7 +82,8 @@ class SapFileController extends Controller
$data = [];
foreach ($files as $file) {
$filePath = $path . $file;
$filePath = $path . '/' . $file; // ✅ Correct
// Read file content safely
$content = file_get_contents($filePath);