We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fe75ca commit d86484fCopy full SHA for d86484f
src/Controllers/DownloadController.php
@@ -21,8 +21,8 @@ public function getDownload()
21
if (key_exists('driver', $config) && $config['driver'] == 's3') {
22
$duration = $this->helper->config('temporary_url_duration');
23
return response()->streamDownload(function () {
24
- echo file_get_contents($disk->temporaryUrl($file->path('storage'), now()->addMinutes($duration)));
25
- }, $file_name);
+ echo file_get_contents($disk->temporaryUrl($file->path('storage'), now()->addMinutes($duration)));
+ }, $file_name);
26
} else {
27
return response()->download($file->path('absolute'));
28
}
0 commit comments