airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [44/50] [abbrv] airavata-php-gateway git commit: fixing cannot download input
Date Thu, 14 Jan 2016 15:43:40 GMT
fixing cannot download input


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/b0dc024b
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/b0dc024b
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/b0dc024b

Branch: refs/heads/develop
Commit: b0dc024bd81259bd3ca6d7c604768ab032e68793
Parents: 7b8cd11
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Tue Jan 12 08:45:55 2016 -0500
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Tue Jan 12 08:45:55 2016 -0500

----------------------------------------------------------------------
 app/routes.php | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/b0dc024b/app/routes.php
----------------------------------------------------------------------
diff --git a/app/routes.php b/app/routes.php
index c925610..c32dd48 100755
--- a/app/routes.php
+++ b/app/routes.php
@@ -93,6 +93,13 @@ Route::get("download/{exp_data_dir}/{exp_folder}/{exp_file}", function($exp_data
         . '/' . $exp_data_dir . "/" . $exp_folder . '/' . $exp_file;
     return Response::download( $downloadLink);
 });
+
+Route::get("download/{exp_data_dir}/{exp_file}", function($exp_data_dir, $exp_file){
+    $downloadLink = Config::get('pga_config.airavata')['experiment-data-absolute-path'] .
'/' . Session::get('username')
+        . '/' . $exp_data_dir . '/' . $exp_file;
+    return Response::download( $downloadLink);
+});
+
 /*
  * Compute Resources Routes
 */


Mime
View raw message