Skip to content

Commit d86484f

Browse files
authored
Update DownloadController.php
1 parent 2fe75ca commit d86484f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Controllers/DownloadController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public function getDownload()
2121
if (key_exists('driver', $config) && $config['driver'] == 's3') {
2222
$duration = $this->helper->config('temporary_url_duration');
2323
return response()->streamDownload(function () {
24-
echo file_get_contents($disk->temporaryUrl($file->path('storage'), now()->addMinutes($duration)));
25-
}, $file_name);
24+
echo file_get_contents($disk->temporaryUrl($file->path('storage'), now()->addMinutes($duration)));
25+
}, $file_name);
2626
} else {
2727
return response()->download($file->path('absolute'));
2828
}

0 commit comments

Comments
 (0)