Update file path in getPdf method to use ProcessOrder directory for PDF retrieval
This commit is contained in:
@@ -52,7 +52,7 @@ class PdfController extends Controller
|
|||||||
$filename .= '.pdf';
|
$filename .= '.pdf';
|
||||||
}
|
}
|
||||||
|
|
||||||
$filePath = "uploads/temp/" . $filename;
|
$filePath = "uploads/ProcessOrder/" . $filename;
|
||||||
|
|
||||||
if (!Storage::disk('local')->exists($filePath)) {
|
if (!Storage::disk('local')->exists($filePath)) {
|
||||||
return response()->json(['error' => 'File not found'], 404);
|
return response()->json(['error' => 'File not found'], 404);
|
||||||
|
|||||||
Reference in New Issue
Block a user