Repository: airavata-php-gateway Updated Branches: refs/heads/file-management bb5c809b8 -> 15780f7f0
changing config value names Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/15780f7f Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/15780f7f Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/15780f7f Branch: refs/heads/file-management Commit: 15780f7f061fb5113b1f52f8df56f3920a0543a0 Parents: bb5c809 Author: scnakandala <[email protected]> Authored: Sun Nov 1 16:09:53 2015 -0500 Committer: scnakandala <[email protected]> Committed: Sun Nov 1 16:09:53 2015 -0500 ---------------------------------------------------------------------- app/controllers/DownloadFileController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/15780f7f/app/controllers/DownloadFileController.php ---------------------------------------------------------------------- diff --git a/app/controllers/DownloadFileController.php b/app/controllers/DownloadFileController.php index c073a71..beb4fce 100644 --- a/app/controllers/DownloadFileController.php +++ b/app/controllers/DownloadFileController.php @@ -12,10 +12,11 @@ class DownloadFileController extends Controller { if(Input::has("filePath") ){ $filePath = Input::get("filePath"); $file= Config::get('pga_config.airavata')["data-archive-path"] . "/" . Session::get("username") . "/" . $filePath; + $fileName = basename($file); $headers = array( 'application/octet-stream', ); - return Response::download($file, 'gaussian.in.com', $headers); + return Response::download($file, $fileName, $headers); } } } \ No newline at end of file
