- mcamara/laravel-localization update

- download files with correct file extension
- data type of value of abstratct is now "text"
- geopackage seeder is now application/x-sqlite3
- style improvements for search
This commit is contained in:
Arno Kaimbacher 2019-09-23 17:44:42 +02:00
parent 7bf0337faf
commit 024002eded
6 changed files with 18 additions and 11 deletions

View file

@ -13,6 +13,8 @@ class FileController extends Controller
//$report = $this->report->find($id);
$file = File::findOrFail($id);
$file_path = public_path('storage/' . $file->path_name);
return response()->download($file_path, $file->label, ['Content-Type:' . $file->mime_type]);
$ext = \Illuminate\Support\Facades\File::extension($file_path);
return response()->download($file_path, $file->label . "." . $ext, ['Content-Type:' . $file->mime_type]);
// return response()->download($file_path, $file->label, ['Content-Type:' . $file->mime_type]);
}
}