Repository: airavata-php-gateway Updated Branches: refs/heads/dreg-gateway fc04148bd -> dae6cd756
AIRAVATA-1397 File size detection for opt. input 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/65ef21b2 Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/65ef21b2 Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/65ef21b2 Branch: refs/heads/dreg-gateway Commit: 65ef21b2a8bdaf3d3d32d1faf917554fea45c6ba Parents: 4ece55f Author: Marcus Christie <machris...@apache.org> Authored: Tue Jan 10 16:03:28 2017 -0500 Committer: Marcus Christie <machris...@apache.org> Committed: Tue Jan 10 16:03:28 2017 -0500 ---------------------------------------------------------------------- app/libraries/ExperimentUtilities.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/65ef21b2/app/libraries/ExperimentUtilities.php ---------------------------------------------------------------------- diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php index 92c54e0..d939f7d 100755 --- a/app/libraries/ExperimentUtilities.php +++ b/app/libraries/ExperimentUtilities.php @@ -830,7 +830,7 @@ class ExperimentUtilities if($appInterface->hasOptionalFileInputs){ echo '<div> <label>Optional Input Files</label> - <input type="file" id="optInputFiles" name="optInputFiles[]" multiple onchange="javascript:updateList()" > + <input type="file" class="file-input" id="optInputFiles" name="optInputFiles[]" multiple onchange="javascript:updateList()" > <div id="optFileList"></div> </div>'; } @@ -870,7 +870,7 @@ class ExperimentUtilities CommonUtilities::print_error_message('AiravataSystemException!<br><br>' . $ase->getMessage()); } - if(Config::get('pga_config.airavata')["data-sharing-enabled"]){ + if(Config::get('pga_config.airavata')["data-sharing-enabled"] && $expId){ ExperimentUtilities::share_experiment($expId, json_decode($share)); }