- fixed file download links when you are using different disk location in filesystems.disks.local.root

This commit is contained in:
Peter Papp
2021-02-25 15:54:18 +01:00
parent b42d480c91
commit 92e02d8b57

View File

@@ -277,7 +277,7 @@ class FileAccessController extends Controller
"Content-Disposition" => "attachment; filename=" . $file_pretty_name,
];
return response()->download(storage_path('/app/file-manager/') . $file->basename, $file_pretty_name, $headers);
return response()->download(config('filesystems.disks.local.root') . '/file-manager/' . $file->basename, $file_pretty_name, $headers);
}
/**