You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2017/02/01 13:36:37 UTC

[08/21] airavata-php-gateway git commit: AIRAVATA-1397 Fixing editing optional upload files

AIRAVATA-1397 Fixing editing optional upload files


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

Branch: refs/heads/dreg-gateway
Commit: 0edd8bdd5aa07023802ff2b82185c5cf6fbc53aa
Parents: 2232fe6
Author: Marcus Christie <ma...@apache.org>
Authored: Thu Jan 19 14:40:37 2017 -0500
Committer: Marcus Christie <ma...@apache.org>
Committed: Thu Jan 19 14:40:37 2017 -0500

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/0edd8bdd/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 005ddee..47a0c0e 100755
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -475,8 +475,7 @@ class ExperimentUtilities
                             . $_FILES['optInputFiles']['name'][$i] . "'. File upload error code is " . $_FILES['optInputFiles']['error'][$i] . ".");
                     }
 
-                    $filePath = ExperimentUtilities::$experimentPath . $_FILES['optInputFiles']['name'][$i];
-
+                    $filePath = $experimentFilePath . $_FILES['optInputFiles']['name'][$i];
                     // check if file already exists
                     if (is_file($filePath)) {
                         unlink($filePath);