Правим контроллер
This commit is contained in:
parent
04dbef81f6
commit
7bc0336b7a
|
@ -8,6 +8,9 @@ class DownloadController extends Controller
|
|||
{
|
||||
public function download($file_name) {
|
||||
$file_path = public_path('/'.'downloads/'.$file_name);
|
||||
return response()->download($file_path);
|
||||
$headers = [
|
||||
'Content-Type' => 'video/mp4',
|
||||
];
|
||||
return response()->download($file_path, $file_name, $headers);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue