changing config value names
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 @@
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