Fix readFiles method to correctly concatenate file path for reading file contents
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user