Skip to content
This repository has been archived by the owner on May 7, 2019. It is now read-only.

Commit

Permalink
Fix all files downloading when sendfile method is null
Browse files Browse the repository at this point in the history
  • Loading branch information
TheReverend403 committed Oct 31, 2018
1 parent aaf3ec2 commit 07841d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static function sendFile(Upload $upload)
->header('Content-Disposition', sprintf('inline; filename="%s"', $upload->original_name));
break;
default:
return response()->download($upload->getPath(true), $upload->original_name);
return response()->file($upload->getPath(true), ['Content-Disposition' => sprintf('inline; filename="%s"', $upload->original_name)]);
}
}

Expand Down

0 comments on commit 07841d9

Please sign in to comment.