Response::Download() in Laravel 4.x needs php_fileinfo extension. Sometimes web hosting server doesn’t have that extension on, althought it’s default for php 5.4.
so the way to work around is make a response, and add header to it. See code below
1 | $file = File::get($filepath); |